|
11 | 11 | {% extends 'base.html' %} |
12 | 12 |
|
13 | 13 | {% block title %} |
14 | | - {{ _('Portal') }} - {{ super() }} |
| 14 | + {{ _('Portal') }} – {{ super() }} |
15 | 15 | {% endblock %} |
16 | 16 |
|
17 | 17 | {% set active_app = 'portal' %} |
|
32 | 32 | {{ macros.sidebar_item(_('Calendar'), href('portal', 'calendar')) }} |
33 | 33 | {% endcall %} |
34 | 34 |
|
35 | | - {% if USER.can('static_page_edit') |
36 | | - or USER.can('static_file_edit') |
37 | | - or USER.can('configuration_edit') |
38 | | - or USER.can('markup_css_edit') |
| 35 | + {% if USER.has_perm('portal.change_staticpage') |
| 36 | + or USER.has_perm('portal.change_staticfile') |
| 37 | + or USER.has_perm('portal.change_storage') |
39 | 38 | %} |
40 | 39 | {% call macros.sidebar_admin() %} |
41 | | - {% if USER.can('configuration_edit') %} |
42 | | - {{ macros.sidebar_item(_('General'),href('portal', 'config')) }} |
| 40 | + {% if USER.has_perm('portal.change_storage') %} |
| 41 | + {{ macros.sidebar_item(_('General'), href('portal', 'config')) }} |
43 | 42 | {% endif %} |
44 | | - {% if USER.can('markup_css_edit') %} |
45 | | - {{ macros.sidebar_item(_('Stylesheets'),href('portal', 'styles')) }} |
| 43 | + {% if USER.has_perm('portal.change_staticpage') %} |
| 44 | + {{ macros.sidebar_item(_('Stylesheets'), href('portal', 'styles')) }} |
| 45 | + {{ macros.sidebar_item(_('Static pages'), href('portal', 'pages')) }} |
46 | 46 | {% endif %} |
47 | | - {% if USER.can('static_page_edit') %} |
48 | | - {{ macros.sidebar_item(_('Static pages'),href('portal', 'pages')) }} |
49 | | - {% endif %} |
50 | | - {% if USER.can('static_file_edit') %} |
51 | | - {{ macros.sidebar_item(_('Static files'),href('portal', 'files')) }} |
| 47 | + {% if USER.has_perm('portal.change_staticfile') %} |
| 48 | + {{ macros.sidebar_item(_('Static files'), href('portal', 'files')) }} |
52 | 49 | {% endif %} |
53 | 50 | {% endcall %} |
54 | 51 | {% endif %} |
|
0 commit comments