~homeworkprod/byceps

ref: 4144a29fdeb34e20d44e5cd78a324d9f9f6a2b0d byceps/byceps/blueprints/admin/more/templates/admin/more/view_global.html -rw-r--r-- 1.5 KiB
4144a29f — Jochen Kupperschmidt Dim archived brands in admin brand navigation dropdown 1 year, 15 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends 'layout/admin/base.html' %}
{% from 'macros/admin/dashboard.html' import render_cell %}
{% from 'macros/icons.html' import render_icon %}
{% set current_page = 'more_admin_global' %}
{% set title = _('More') %}
{% set layout_main_raw = True %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static', filename='style/admin_dashboard.css') }}">
{%- endblock %}

{% block body %}

  <div class="grid dashboard">
  {%- with items = [
    (_('Permissions'), 'permission', url_for('authorization_admin.role_index'), RolePermission.view),
    (_('Global Snippets'), 'snippet', url_for('snippet_admin.index_for_scope', scope_type='global', scope_name='global'), SnippetPermission.view),
    (_('Consents'), 'consent', url_for('consent_admin.index'), ConsentPermission.administrate),
    (_('Newsletters'), 'email', url_for('newsletter_admin.index'), NewsletterPermission.view_subscriptions),
    (_('User Badges'), 'badge', url_for('user_badge_admin.index'), UserBadgePermission.view),
    (_('Webhooks'), 'webhook', url_for('webhook_admin.index'), WebhookPermission.view),
    (_('Maintenance'), 'administrate', url_for('maintenance_admin.index'), AdminPermission.maintain),
  ] %}
    {%- for label, icon, url, required_permission in items %}
      {%- if has_current_user_permission(required_permission) %}
        {%- call render_cell(icon_name=icon, href=url) %}
          {{ render_icon(icon) }} <span>{{ label }}</span>
        {%- endcall %}
      {%- endif %}
    {%- endfor %}
  {%- endwith %}
  </div>

{%- endblock %}