diff --git a/canaille/templates/base.html b/canaille/templates/base.html new file mode 100644 index 00000000..de8ee8a6 --- /dev/null +++ b/canaille/templates/base.html @@ -0,0 +1,106 @@ +{%- import 'macro/flask.html' as flask -%} + + + + + {% block title -%}{% trans %}Authorization interface{% endtrans %}{%- endblock %} - {{ website_name|default("Canaille") }} + + {% if not is_boosted %} + + + + + + + + {% if logo_url %}{% endif %} + {% endif %} + {% block style %}{% endblock %} + + + + {% block menu %} + {% if user and menu %} + + {% endif %} + {% endblock %} + + + {% block container %} +
+
+ {{ flask.messages() }} + {% block content %}{% endblock %} +
+
+ {% endblock %} + + + {% if config.get("JAVASCRIPT", true) %} + {% if not is_boosted %} + + + {% if config.get("HTMX", true) %} + + + {% endif %} + + {% endif %} + {% block script %}{% endblock %} + {% endif %} + + diff --git a/canaille/themes/default/base.html b/canaille/themes/default/base.html index 303fae3e..94d9808c 100644 --- a/canaille/themes/default/base.html +++ b/canaille/themes/default/base.html @@ -1,106 +1 @@ -{% import 'macro/flask.html' as flask %} - - - - - {% block title -%}{% trans %}Authorization interface{% endtrans %}{%- endblock %} - {{ website_name|default("Canaille") }} - - {% if not is_boosted %} - - - - - - - - {% if logo_url %}{% endif %} - {% endif %} - {% block style %}{% endblock %} - - - - {% block menu %} - {% if user and menu %} - - {% endif %} - {% endblock %} - - - {% block container %} -
-
- {{ flask.messages() }} - {% block content %}{% endblock %} -
-
- {% endblock %} - - - {% if config.get("JAVASCRIPT", true) %} - {% if not is_boosted %} - - - {% if config.get("HTMX", true) %} - - - {% endif %} - - {% endif %} - {% block script %}{% endblock %} - {% endif %} - - +{% extends "base.html" %}