From 20730c0cc5d2906a72fded9eaabdc25639b0621e Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 11 Jul 2016 20:12:21 +0200 Subject: use smoothstate.js for the search and the login forms --- templates/index.html | 334 ++++++++++++++++++++++++++------------------------- 1 file changed, 169 insertions(+), 165 deletions(-) diff --git a/templates/index.html b/templates/index.html index ac85c90..4076def 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,183 +12,174 @@ -
- - -
-
- - {% with msgs = get_flashed_messages() %} - {% if msgs %} + + +
+ + {% with msgs = get_flashed_messages() %} + {% if msgs %} +
+ {% for msg in msgs %} +

{{ msg }}

+ {% endfor %} +
+ {% endif %} + {% endwith %} + {% if tags %}
- {% for msg in msgs %} -

{{ msg }}

- {% endfor %} + {% for tag in tags %} +
+ {{ tag }} + close +
+ {% endfor %}
{% endif %} - {% endwith %} - {% if tags %} -
- {% for tag in tags %} -
- {{ tag }} - close -
- {% endfor %} -
- {% endif %} - {% if jokes|length > 0 %} -
    - {% for joke in jokes[currentpage*perpage:(currentpage+1)*perpage] %} -
  • -
    - {% if not joke.deleted %} -
    - whatshot {{ joke.score }} Punkte + {% if jokes|length > 0 %} +
      + {% for joke in jokes[currentpage*perpage:(currentpage+1)*perpage] %} +
    • +
      + {% if not joke.deleted %} +
      + whatshot {{ joke.score }} Punkte +
      +
      + + +
      +
      + + +
      + {% else %} +
      + + +
      + {% endif %}
      -
      - - -
      -
      - - -
      - {% else %} -
      - - -
      - {% endif %} -
    -
    - {% if joke.mine %} -
    - - -
    - - - +
    + {% if joke.mine %} + + + +
    + + + +
    + + {% endif %} +
    + {{ joke.html|safe }}
    - - {% endif %} -
    - {{ joke.html|safe }} + {% if joke.mine and not joke.deleted %} +
    + + +
    + {% endif %}
    - {% if joke.mine and not joke.deleted %} -
    - - -
    - {% endif %} -
    -
  • - {% endfor %} -
- {% else %} -
-

Nichts gefunden.

-
- {% endif %} - {% if jokes|length > perpage %} -
- -
- {% endif %} - -
+ +
+ + + + -- cgit v1.3.1