From dd266f8cdfdb5d27fd754682840754f81571bed6 Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 10 Sep 2020 18:37:47 +0200 Subject: [PATCH] dynamic url --- .../lostplaces_app/templates/global.html | 131 +++++++++--------- 1 file changed, 66 insertions(+), 65 deletions(-) diff --git a/lostplaces/lostplaces_app/templates/global.html b/lostplaces/lostplaces_app/templates/global.html index 6863ad3..bca584f 100644 --- a/lostplaces/lostplaces_app/templates/global.html +++ b/lostplaces/lostplaces_app/templates/global.html @@ -16,77 +16,78 @@ - -
-
- -
- - {% if user.is_authenticated %} - Hi {{ user.username }}! - logout - {% if user.is_superuser %} - admin - {% endif %} + +
+
+ +
+ + {% if user.is_authenticated %} + Hi {{ user.username }}! + logout + {% if user.is_superuser %} + admin + {% endif %} - {% else %} - You are not logged in. - login | - signup - {% endif %} - -
-
- - - -
- {% if messages %} -
-
    - {% for message in messages %} -
  • -
    -
    -
    -
    -
    -
    - {{ message }} + {% else %} + You are not logged in. + login | + signup + {% endif %} + +
    +
+ + + +
+ {% if messages %} +
+
    + {% for message in messages %} +
  • +
    +
    +
    -
  • - {% endfor %} -
-
- {% endif %} +
+ {{ message }} +
+
+ + {% endfor %} + + + {% endif %} - {% block maincontent %} - {% endblock maincontent %} + {% block maincontent %} + {% endblock maincontent %} - - + + {% block footer %} - {% include 'partials/nav/footer.html' %} + {% include 'partials/nav/footer.html' %} {% endblock footer %} - - + + + \ No newline at end of file