diff --git a/files/templates/default.html b/files/templates/default.html index 2e66597ab..8ec4489be 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -1,5 +1,5 @@ {%- extends 'root.html' -%} -{% block body_attributes %}id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" {% 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="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} 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 %}"{% elif not v %}style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} background:url(/assets/images/backgrounds/glitter/1.webp?v=3) center center fixed; background-color: var(--background);background-size: cover"{% endif %}{% endblock %} +{% block body_attributes %}id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}"{% endblock %} {% block body %} {% block banner %} {% include "modals/expanded_image.html" %} diff --git a/files/templates/root.html b/files/templates/root.html index be35d1078..655b872e8 100644 --- a/files/templates/root.html +++ b/files/templates/root.html @@ -23,5 +23,20 @@ {% block body required %}{% endblock %} + diff --git a/files/templates/settings.html b/files/templates/settings.html index b52b0f06a..75363d313 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -1,7 +1,7 @@ {%- extends 'root.html' -%} {% import 'settings/common.html' as common with context %} {% block pagetitle %}Settings{% endblock %} -{% block body_attributes %}id="settings" {% 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 %}{% endblock %} +{% block body_attributes %}id="settings"{% endblock %} {% block body %} {% include "header.html" %}
diff --git a/files/templates/settings2.html b/files/templates/settings2.html index 0f52f145e..ead2a70ac 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -1,6 +1,6 @@ {%- extends 'root.html' -%} {% block pagetitle %}User List{% endblock %} -{% block body_attributes %}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 %}{% endblock %} +{% block body_attributes %}id="settings2"{% endblock %} {% block body %} {% include "header.html" %} {% block subNav %}