~homeworkprod/byceps

ref: 9d03914c72973f3aaa42044ceb849cac91ac79c9 byceps/byceps/blueprints/admin/more/templates/admin/more/view_brand.html -rw-r--r-- 1.6 KiB
9d03914c — Jochen Kupperschmidt Move link to news channel index from admin brand "more" page to admin brand navigation 6 months 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_brand' %}
{% set current_page_brand = brand %}
{% 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('brand_admin.view', brand_id=brand.id), BrandPermission.view),
    (_('Newsletter Subscriptions'), 'email', url_for('newsletter_admin.view_subscriptions', list_id=brand.id), NewsletterPermission.view_subscriptions),
    (_('Discussion Boards'), 'board', url_for('board_admin.board_index_for_brand', brand_id=brand.id), BoardCategoryPermission.view),
    (_('Regular Guests'), 'users', url_for('attendance_admin.view_for_brand', brand_id=brand.id), AdminPermission.access),
    (_('Brand Snippets'), 'snippet', url_for('snippet_admin.index_for_scope', scope_type='brand', scope_name=brand.id), SnippetPermission.view),
    (_('Terms of Service'), 'legal', url_for('terms_admin.view_document', document_id=brand.id), TermsPermission.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 %}