changeset 76:ead4db120515

components/common: profile is now always set, so we just test if it evaluate to True to know if a user is logged
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2017 00:41:42 +0100 (2017-12-12)
parents 9471c7309ecc
children 304a72392191
files default/components/common.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/default/components/common.html	Mon Dec 04 01:11:33 2017 +0100
+++ b/default/components/common.html	Wed Dec 13 00:41:42 2017 +0100
@@ -1,6 +1,6 @@
 {# menu labels, map from menu names to labels #}
 {% set ml = {
-    'login': _('Session') if profile is defined else _('Log in'),
+    'login': _('Session') if profile else _('Log in'),
     'blog_view': _('Blog'),
     'merge-requests_list': _('Merge requests'),
     'merge-request_new': _('Create new merge request'),