Mercurial > libervia-templates
diff default/components/common.html @ 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 |
parents | 9834106678da |
children | 05b500bd6235 |
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'),