{% 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 %} {%- endblock %} {% block body %}
{%- 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) }} {{ label }} {%- endcall %} {%- endif %} {%- endfor %} {%- endwith %}
{%- endblock %}