forked from rDrama/rDrama
remove useless param "include_user_css"
parent
d633212b4c
commit
c9647eef32
|
@ -2,7 +2,6 @@
|
||||||
{% block pagetitle %}Login{% endblock %}
|
{% block pagetitle %}Login{% endblock %}
|
||||||
{% block pagetype %}login{% endblock %}
|
{% block pagetype %}login{% endblock %}
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = false %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{% block pagetitle %}Login{% endblock %}
|
{% block pagetitle %}Login{% endblock %}
|
||||||
{% block pagetype %}login{% endblock %}
|
{% block pagetype %}login{% endblock %}
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = false %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block authtitle %}Welcome back.{% endblock %}
|
{% block authtitle %}Welcome back.{% endblock %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{% block pagetitle %}Login{% endblock %}
|
{% block pagetitle %}Login{% endblock %}
|
||||||
{% block pagetype %}login{% endblock %}
|
{% block pagetype %}login{% endblock %}
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = false %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
{% block pagetype %}login{% endblock %}
|
{% block pagetype %}login{% endblock %}
|
||||||
|
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = false %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{% block pagetitle %}Sign Up: Error{% endblock %}
|
{% block pagetitle %}Sign Up: Error{% endblock %}
|
||||||
{% block pagetype %}login{% endblock %}
|
{% block pagetype %}login{% endblock %}
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = false %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block authtitle %}Whoops! You can't refer yourself!{% endblock %}
|
{% block authtitle %}Whoops! You can't refer yourself!{% endblock %}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{% set root_scope = namespace() %}
|
{% set root_scope = namespace() %}
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = true %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{%- import 'util/macros.html' as macros with context -%}
|
{%- import 'util/macros.html' as macros with context -%}
|
||||||
|
@ -30,7 +29,7 @@
|
||||||
{{html_head.seo()}}
|
{{html_head.seo()}}
|
||||||
{{html_head.page_meta(self.pagetitle() or none)}}
|
{{html_head.page_meta(self.pagetitle() or none)}}
|
||||||
{{html_head.javascript()}}
|
{{html_head.javascript()}}
|
||||||
{{html_head.stylesheets(root_scope.include_user_css)}}
|
{{html_head.stylesheets()}}
|
||||||
{{html_head.cf_2fa_verify() if root_scope.include_2fa_verify}}
|
{{html_head.cf_2fa_verify() if root_scope.include_2fa_verify}}
|
||||||
{% block head_final %}{% endblock %}
|
{% block head_final %}{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{% block pagetitle %}Create a Post{% endblock %}
|
{% block pagetitle %}Create a Post{% endblock %}
|
||||||
{% block pagetype %}submit{% endblock %}
|
{% block pagetype %}submit{% endblock %}
|
||||||
{% block template_config %}
|
{% block template_config %}
|
||||||
{% set root_scope.include_user_css = true %}
|
|
||||||
{% set root_scope.include_cf_2fa_verify = false %}
|
{% set root_scope.include_cf_2fa_verify = false %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block banner %}{% endblock %}
|
{% block banner %}{% endblock %}
|
||||||
|
|
|
@ -97,13 +97,13 @@
|
||||||
<meta name="twitter:url" content="{{url}}">
|
<meta name="twitter:url" content="{{url}}">
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro stylesheets(include_user_css) %}
|
{% macro stylesheets() %}
|
||||||
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
|
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% if v.chud %}
|
{% if v.chud %}
|
||||||
<link rel="stylesheet" href="{{('css/chud.css') | asset}}">
|
<link rel="stylesheet" href="{{('css/chud.css') | asset}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if include_user_css and not IS_FISTMAS() %}
|
{% if not IS_FISTMAS() %}
|
||||||
{% if v.theme == 'classic_dark' %}
|
{% if v.theme == 'classic_dark' %}
|
||||||
<link rel="stylesheet" href="{{('css/themes/classic.css') | asset}}">
|
<link rel="stylesheet" href="{{('css/themes/classic.css') | asset}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -120,8 +120,6 @@
|
||||||
{% if v.themecolor == '30409f' %}
|
{% if v.themecolor == '30409f' %}
|
||||||
<link rel="stylesheet" href="{{('css/30409f.css') | asset}}">
|
<link rel="stylesheet" href="{{('css/30409f.css') | asset}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
|
||||||
<link rel="stylesheet" href="{{('css/themes/'~DEFAULT_THEME~'.css') | asset}}">
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="stylesheet" href="{{('css/themes/'~DEFAULT_THEME~'.css') | asset}}">
|
<link rel="stylesheet" href="{{('css/themes/'~DEFAULT_THEME~'.css') | asset}}">
|
||||||
|
|
Loading…
Reference in New Issue