Mercurial > libervia-templates
comparison 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 |
comparison
equal
deleted
inserted
replaced
75:9471c7309ecc | 76:ead4db120515 |
---|---|
1 {# menu labels, map from menu names to labels #} | 1 {# menu labels, map from menu names to labels #} |
2 {% set ml = { | 2 {% set ml = { |
3 'login': _('Session') if profile is defined else _('Log in'), | 3 'login': _('Session') if profile else _('Log in'), |
4 'blog_view': _('Blog'), | 4 'blog_view': _('Blog'), |
5 'merge-requests_list': _('Merge requests'), | 5 'merge-requests_list': _('Merge requests'), |
6 'merge-request_new': _('Create new merge request'), | 6 'merge-request_new': _('Create new merge request'), |
7 'tickets_list': _('Tickets'), | 7 'tickets_list': _('Tickets'), |
8 'ticket_new': _('Create new ticket'), | 8 'ticket_new': _('Create new ticket'), |