diff --git a/core/templates/core/base.jinja b/core/templates/core/base.jinja index b6abf2c8..b27f8e24 100644 --- a/core/templates/core/base.jinja +++ b/core/templates/core/base.jinja @@ -184,9 +184,7 @@ {% trans %}Forum{% endtrans %} {% trans %}Gallery{% endtrans %} - {% if request.user.is_authenticated %} - {% trans %}Eboutic{% endtrans %} - {% endif %} + {% trans %}Eboutic{% endtrans %} + {% endif %} + +
+ +
+ {% csrf_token %} + +
+
{% if not request.user.date_of_birth %}
@@ -88,35 +88,37 @@
{% endif %} - {% for category, items in products|groupby('category') %} - {% if items|count > 0 %} -
- {# I would have wholeheartedly directly used the header element instead - but it has already been made messy in core/style.scss #} -
-

{{ category }}

- {% if category.comment %} -

{{ category.comment }}

- {% endif %} -
-
- {% for p in items %} - - {% endfor %} -
-
- {% endif %} - {% else %} + {% for priority_groups in products|groupby('priority')|reverse %} + {% for category, items in priority_groups.list|groupby('category') %} + {% if items|count > 0 %} +
+ {# I would have wholeheartedly directly used the header element instead + but it has already been made messy in core/style.scss #} +
+

{{ category }}

+ {% if items[0].category_comment %} +

{{ items[0].category_comment }}

+ {% endif %} +
+
+ {% for p in items %} + + {% endfor %} +
+
+ {% endif %} + {% endfor %} + {% else %}

{% trans %}There are no items available for sale{% endtrans %}

{% endfor %}