From 84bf5dad526a6f7829bd8a7df4b3d31568882175 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Jan 2019 21:08:50 +0100 Subject: [PATCH] loggedin --- templates/main.html | 12 ++++++------ templates/wikipage.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/main.html b/templates/main.html index ab7e54ff..6e686e6f 100644 --- a/templates/main.html +++ b/templates/main.html @@ -14,28 +14,28 @@
- {% if not g.logged_in %} + {% if not g.user %} {% include "components/welcome.html" %} {% endif %} - {% if g.logged_in %} + {% if g.user %} {% if events %} {% include "components/eventlist.html" %} {% endif %} {% endif %} {% include "components/memberbox.html" %} - {% if g.logged_in %} + {% if g.user %} {% include "components/wikibox.html" %} {% endif %}
- {% if not g.logged_in %} + {% if not g.user %} {% include "components/whatarewe.html" %} {% endif %} - {% if g.logged_in %} + {% if g.user %} {% include "components/questboard.html" %} {% endif %} {% include "components/gamestatsbox.html" %} - {% if g.logged_in %} + {% if g.user %} {% include "components/links.html" %} {% include "components/diariooftheday.html" %} {% endif %} diff --git a/templates/wikipage.html b/templates/wikipage.html index 5b4e22ca..1ac06bd7 100644 --- a/templates/wikipage.html +++ b/templates/wikipage.html @@ -43,7 +43,7 @@ Ultima modifica di {{ wiki_log.editor.username }} alle {{ wiki_log.timestamp.strftime('%Y-%m-%d %H:%M:%S %Z') }}{% if wiki_log.reason %}, motivo: {{ wiki_log.reason }}{% endif %}
{% endif %} - {% if session.get('user_id', '') %} + {% if g.user %}

Modifica