~homeworkprod/byceps

ref: 4144a29fdeb34e20d44e5cd78a324d9f9f6a2b0d byceps/byceps/blueprints/admin/more/templates/admin/more/view_party.html -rw-r--r-- 1.2 KiB
4144a29f — Jochen Kupperschmidt Dim archived brands in admin brand navigation dropdown 1 year, 9 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
{% 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_party' %}
{% set current_page_party = party %}
{% 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 = [
    (_('Settings'), 'settings', url_for('party_admin.view', party_id=party.id), PartyPermission.view),
    (_('Organizer Presence'), 'date-okay', url_for('orga_presence.view', party_id=party.id), OrgaPresencePermission.view),
    (_('Tournaments'), 'trophy', url_for('tourney_tourney_admin.index', party_id=party.id), TourneyPermission.view),
  ] %}
    {%- 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 %}