~homeworkprod/byceps

ref: 4144a29fdeb34e20d44e5cd78a324d9f9f6a2b0d byceps/byceps/blueprints/admin/more/templates/admin/more/view_site.html -rw-r--r-- 1.1 KiB
4144a29f — Jochen Kupperschmidt Dim archived brands in admin brand navigation dropdown 1 year, 12 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
{% 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_site' %}
{% set current_page_site = site %}
{% 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('site_admin.view', site_id=site.id), SitePermission.view, True),
    (_('Discussion Board'), 'board', url_for('board_admin.board_view', board_id=site.board_id) if site.board_id else '', BoardCategoryPermission.view, site.board_id is not none),
  ] %}
    {%- for label, icon, url, required_permission, precondition in items %}
      {%- if has_current_user_permission(required_permission) and precondition %}
        {%- call render_cell(icon_name=icon, href=url) %}
          {{ render_icon(icon) }} <span>{{ label }}</span>
        {%- endcall %}
      {%- endif %}
    {%- endfor %}
  {%- endwith %}
  </div>

{%- endblock %}