{% extends "base.html" %} {% block title %}{{ _('Info Pages') }} — {{ service_name }}{% endblock %} {% block content %}
{{ _('Info Pages are shown when users visit specific routes for the first time.') }} {{ _('Read more.') }}
{{ _('Create Info Page') }} {% if info_pages %}{{ _('ID') }} | {{ _('Title') }} | {{ _('Routes') }} | {% if not current_user.is_readonly %}{% endif %} |
---|---|---|---|
{{ info_page.id }} | {{ info_page.title | get_translated_text(default='—') }} |
{% if info_page.endpoint %}
{% set url_rules = url_map.iter_rules(info_page.endpoint) | list %}
{% if url_rules %}
{%- for rule in url_rules -%}
{{ rule }} {% if not loop.last %}, {% endif %}
{%- endfor -%}
{% else %}
{{ _('Unknown route') }}
{% endif %}
{% else %}
{{ _('All routes') }}
{% endif %}
{% if info_page.disabled %}
{{ _('disabled') }}
{% endif %}
|
{% if not current_user.is_readonly %}
{{ _("View") }} {{ _("Edit") }} | {% endif %}
{{ _('There are no info pages set up at this time.') }}
{% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}