forked from rDrama/rDrama
html_head: fix SITE_NAME titles, improve settings2.
parent
d73ffaa2eb
commit
b808cf2917
|
@ -2,7 +2,7 @@
|
||||||
{%- import 'html_head.html' as html_head with context -%}
|
{%- import 'html_head.html' as html_head with context -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{{html_head.html_head(false, false, false, none, none)}}
|
{{html_head.html_head(false, false, false, none, SITE_NAME)}}
|
||||||
<body id="login">
|
<body id="login">
|
||||||
<div class="container-fluid position-absolute h-100 p-0">
|
<div class="container-fluid position-absolute h-100 p-0">
|
||||||
<div class="row no-gutters h-100">
|
<div class="row no-gutters h-100">
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% set csp=CONTENT_SECURITY_POLICY_HOME %}
|
{% set csp=CONTENT_SECURITY_POLICY_HOME %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<head>
|
<head>
|
||||||
{{html_head.html_head(true, true, true, csp, none, true)}}
|
{{html_head.html_head(true, true, true, csp, SITE_NAME, true)}}
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -48,8 +48,12 @@
|
||||||
|
|
||||||
{% elif '@' in request.path and u %}
|
{% elif '@' in request.path and u %}
|
||||||
{% set author, a_author, published, url, title, image, section =
|
{% set author, a_author, published, url, title, image, section =
|
||||||
'@'+u.username, '@'+u.username, u.created_date,
|
'@'+u.username,
|
||||||
u.url, u.username, u.banner_url,
|
'@'+u.username,
|
||||||
|
u.created_date,
|
||||||
|
u.url,
|
||||||
|
[u.username, "'s profile - ", SITE_NAME] | join,
|
||||||
|
u.banner_url,
|
||||||
[u.username, "'s profile - ", SITE_NAME] | join %}
|
[u.username, "'s profile - ", SITE_NAME] | join %}
|
||||||
|
|
||||||
{% set description %}
|
{% set description %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{%- import 'html_head.html' as html_head with context -%}
|
{%- import 'html_head.html' as html_head with context -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{{html_head.html_head(false, false, false, none, none, false)}}
|
{{html_head.html_head(false, false, false, none, "Login", false)}}
|
||||||
<head>
|
<head>
|
||||||
<body id="login">
|
<body id="login">
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,17 @@
|
||||||
{%- import 'html_head.html' as html_head with context -%}
|
{%- import 'html_head.html' as html_head with context -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{{html_head.html_head(true, false, true, none, none)}}
|
{%-
|
||||||
|
set PAGE_TITLES = {
|
||||||
|
'/leaderboard': 'Leaderboard',
|
||||||
|
'/admins': 'Admins',
|
||||||
|
'/log': 'Modlog',
|
||||||
|
'/banned': 'Permabanned',
|
||||||
|
'/blocks': 'Blocks',
|
||||||
|
}
|
||||||
|
-%}
|
||||||
|
{%- set title = SITE_NAME if not request.path in PAGE_TITLES else PAGE_TITLES[request.path] -%}
|
||||||
|
{{html_head.html_head(true, false, true, none, title)}}
|
||||||
<body id="settings2" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background){% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>
|
<body id="settings2" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background){% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>
|
||||||
|
|
||||||
{% include "header.html" %}
|
{% include "header.html" %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{%- import 'html_head.html' as html_head with context -%}
|
{%- import 'html_head.html' as html_head with context -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{{html_head.html_head(true, false, false, none, none, false)}}
|
{{html_head.html_head(true, false, false, none, "Sign Up: Error", false)}}
|
||||||
<body id="login">
|
<body id="login">
|
||||||
|
|
||||||
<div class="container-fluid position-absolute h-100 p-0">
|
<div class="container-fluid position-absolute h-100 p-0">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{%- import 'html_head.html' as html_head with context -%}
|
{%- import 'html_head.html' as html_head with context -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{{html_head.html_head(true, false, true, none, "Create a post", false)}}
|
{{html_head.html_head(true, false, true, none, "Create a Post", false)}}
|
||||||
<body id="submit" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden; background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background)display: block{% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>
|
<body id="submit" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden; background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background)display: block{% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>
|
||||||
|
|
||||||
{% include "header.html" %}
|
{% include "header.html" %}
|
||||||
|
|
Loading…
Reference in New Issue