- {% set sith = get_sith() %}
- {% if sith.alert_msg %}
-
- {{ sith.alert_msg|markdown }}
-
- {% endif %}
- {% if sith.info_msg %}
-
- {{ sith.info_msg|markdown }}
-
- {% endif %}
-
- {% endblock %}
-
- {% else %}
-
{{ user.get_display_name() }}
- {% endif %}
+ {% block info_boxes %}
+
+ {% set sith = get_sith() %}
+ {% if sith.alert_msg %}
+
+ {{ sith.alert_msg|markdown }}
+
+ {% endif %}
+ {% if sith.info_msg %}
+
+ {{ sith.info_msg|markdown }}
+
+ {% endif %}
+
+ {% endblock %}
{% endblock %}
{% block nav %}
- {% if not popup %}
- {% include "core/base/navbar.jinja" %}
- {% endif %}
+ {% include "core/base/navbar.jinja" %}
{% endblock %}
@@ -102,24 +88,22 @@
- {% if not popup %}
-
- {% endif %}
+
{% block script %}
-{% endblock %}
-
-
-
diff --git a/core/templates/core/file_list.jinja b/core/templates/core/file_list.jinja
index 077a2bf9..5bb08d08 100644
--- a/core/templates/core/file_list.jinja
+++ b/core/templates/core/file_list.jinja
@@ -12,7 +12,7 @@
{% else %}
{% endif %}
- {{ f.name }}
+ {{ f.name }}
{% endfor %}
{% else %}
diff --git a/core/templates/core/macros.jinja b/core/templates/core/macros.jinja
index 40676258..ba42046f 100644
--- a/core/templates/core/macros.jinja
+++ b/core/templates/core/macros.jinja
@@ -245,65 +245,3 @@
{% endmacro %}
-
-{% macro tabs(tab_list, attrs = "") %}
- {# Tab component
-
- Parameters:
- tab_list: list[tuple[str, str]] The list of tabs to display.
- Each element of the list is a tuple which first element
- is the title of the tab and the second element its content
- attrs: str Additional attributes to put on the enclosing div
-
- Example:
- A basic usage would be as follow :
-
- {{ tabs([("title 1", "content 1"), ("title 2", "content 2")]) }}
-
- If you want to display more complex logic, you can define macros
- and use those macros in parameters :
-
- {{ tabs([("title", my_macro())]) }}
-
- It's also possible to get and set the currently selected tab using Alpine.
- Here, the title of the currently selected tab will be displayed.
- Moreover, on page load, the tab will be opened on "tab 2".
-
-
-
- If you want to have translated tab titles, you can enclose the macro call
- in a with block :
-
- {% with title=_("title"), content=_("Content") %}
- {{ tabs([(tab1, content)]) }}
- {% endwith %}
- #}
-
-
- {% for title, _ in tab_list %}
-
- {% endfor %}
-
-
- {% for title, content in tab_list %}
-
- {{ content }}
-
- {% endfor %}
-