From dccdde3262d128c818da26836eafc85c581df9e9 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 4 Jun 2016 15:38:08 +0200 Subject: simplify layout --- templates/index.html | 123 ++++++++++++++++++++++----------------------------- 1 file changed, 54 insertions(+), 69 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index beb3b2e..0da415f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,92 +12,79 @@
-
-

Lehrersprüche

-
-
+

Lehrersprüche

+
{% if user.loggedin %} -
-
-

{{ user.name }}

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

{{ msg }}

- {% endfor %} -
- {% endif %} - {% endwith %}
+ {% with msgs = get_flashed_messages() %} + {% if msgs %} +
+ {% for msg in msgs %} +

{{ msg }}

+ {% endfor %} +
+ {% endif %} + {% endwith %}
    {% for joke in jokes %} -
  • -
    -
    -
    - - - - -
    -
    - - - -
    - {% if joke.mine %} -
    - - - -
    - {% endif %} -
    +
  • +
    +
    + + + + +
    +
    + + + +
    + {% if joke.mine %} +
    + + + +
    + {% endif %}
    -
    +
    {{ joke.text|safe }}
  • {% endfor %} -
+
    chevron_left @@ -112,11 +99,9 @@
    -
    -
    - - -
    +
    + +
    @@ -135,7 +120,7 @@ function submitAjaxer(e, type) { e.preventDefault(); var form = $(this).closest('form'); - var container = $(this).closest('div.row'); + var container = $(this).closest('div'); var data; if (type == 'upvote' || type == 'downvote') { senddata = form.serialize() + '&vote=' + type; -- cgit v1.3.1