From f9530204ce5e04b7545955932e53a8928909895a Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 19 Jun 2016 16:40:41 +0200 Subject: redesign --- templates/index.html | 280 ++++++++++++++++++++++++++------------------------- 1 file changed, 144 insertions(+), 136 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index b08f68b..4372fd3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -11,162 +11,170 @@ -
-
-

Lehrersprüche

-
- {% if user.loggedin %} -
- -
- {% else %} -
-
- - -
-
- - -
-
- +
+ + +
-
- {% with msgs = get_flashed_messages() %} - {% if msgs %} -
- {% for msg in msgs %} + + +
+
+ + {% with msgs = get_flashed_messages() %} + {% if msgs %} +
+ {% for msg in msgs %}

{{ msg }}

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