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 -%}
|
||||
<!DOCTYPE html>
|
||||
<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">
|
||||
<div class="container-fluid position-absolute h-100 p-0">
|
||||
<div class="row no-gutters h-100">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% set csp=CONTENT_SECURITY_POLICY_HOME %}
|
||||
{% endif %}
|
||||
<head>
|
||||
{{html_head.html_head(true, true, true, csp, none, true)}}
|
||||
{{html_head.html_head(true, true, true, csp, SITE_NAME, true)}}
|
||||
{% block title %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
|
|
@ -48,9 +48,13 @@
|
|||
|
||||
{% elif '@' in request.path and u %}
|
||||
{% set author, a_author, published, url, title, image, section =
|
||||
'@'+u.username, '@'+u.username, u.created_date,
|
||||
u.url, u.username, u.banner_url,
|
||||
[u.username, "'s profile - ", SITE_NAME] | join %}
|
||||
'@'+u.username,
|
||||
'@'+u.username,
|
||||
u.created_date,
|
||||
u.url,
|
||||
[u.username, "'s profile - ", SITE_NAME] | join,
|
||||
u.banner_url,
|
||||
[u.username, "'s profile - ", SITE_NAME] | join %}
|
||||
|
||||
{% set description %}
|
||||
"{{u.coins}} coins - Joined {{u.created_date}} -
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{%- import 'html_head.html' as html_head with context -%}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{html_head.html_head(false, false, false, none, none, false)}}
|
||||
{{html_head.html_head(false, false, false, none, "Login", false)}}
|
||||
<head>
|
||||
<body id="login">
|
||||
|
||||
|
|
|
@ -2,7 +2,17 @@
|
|||
{%- import 'html_head.html' as html_head with context -%}
|
||||
<!DOCTYPE html>
|
||||
<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 %}>
|
||||
|
||||
{% include "header.html" %}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{%- import 'html_head.html' as html_head with context -%}
|
||||
<!DOCTYPE html>
|
||||
<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">
|
||||
|
||||
<div class="container-fluid position-absolute h-100 p-0">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{%- import 'html_head.html' as html_head with context -%}
|
||||
<!DOCTYPE html>
|
||||
<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 %}>
|
||||
|
||||
{% include "header.html" %}
|
||||
|
|
Loading…
Reference in New Issue