From b102b93dbdb301538deb928c3cafff271c242d10 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 15 Aug 2016 19:33:28 +0200 Subject: template: add comments --- templates/index.html | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/templates/index.html b/templates/index.html index b940bb2..e96cb29 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,3 +1,4 @@ +{# re-build current search query and override given options #} {% macro query(search, sort) %}?filter={{ search if search is defined else request.args.get("filter") or "" }}&sort={{ sort if sort is defined else request.args.get("sort") or "" }}{% endmacro %} @@ -44,9 +45,9 @@ - + @@ -66,8 +67,8 @@ - - + +
{% with msgs = get_flashed_messages() %} @@ -79,6 +80,8 @@ {% endif %} {% endwith %} + {# /flashes #} + {% if tags or featured %}
{% if tags %} @@ -89,6 +92,7 @@
{% endfor %} {% endif %} + {# /tags #} {% if featured %}

Empfohlen: @@ -97,8 +101,11 @@ {% endfor %}

{% endif %} + {# /featured #} {% endif %} + {# /tags-featured #} + {% if jokes|length > 0 %} + {# /jokes #} + {% else %}

Nichts gefunden.

{% endif %} + {% if jokes|length > perpage %}
-
+ {% endif %} + +
- + + +