{% extends "base.html" %} {% block title %}{{ _('Topics') }} — {{ service_name }}{% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block content %}

{{ _('Topics') }}

{% if not config['DISABLE_TOPICS'] %}

{{ _('Topics allow filtering information in %(service_name)s.', service_name=service_name) }} {{ _('Read more.') }}

{% if current_user.is_admin and not current_user.is_readonly %} {{ _('Create Topic') }} {% endif %} {% for topic in topics %}

{{ topic.name | get_translated_text(default=_('Unnamed Topic')) }}

{% if topic.short_description | get_translated_text %}
{% if topic.short_description_is_markdown %}{{ topic.short_description | get_translated_text | markdown_to_safe_html(anchor_prefix='topic-short-description') | safe }}{% else %}

{{ topic.short_description | get_translated_text }}

{% endif %}
{% endif %}

{% if not config['DISABLE_INSTRUMENTS'] %} {{ _('View Instruments') }} {% endif %} {{ _('View Actions') }} {{ _('View Locations') }} {% if current_user.is_admin and not current_user.is_readonly %} {{ _('Edit Topic') }} {% endif %}

{% endfor %} {% else %}

{{ _('Topics are not enabled in %(service_name)s.', service_name=service_name) }}

{% endif %} {% endblock %}