{% extends "base.html" %} {% block title %}{{ _('Topic') }} #{{ topic.id }}: {{ topic.name | get_translated_text(default=_('Unnamed Topic')) }} — {{ service_name }}{% endblock %} {% block content %} {% if not config['DISABLE_TOPICS'] %}

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

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

{{ topic.description | get_translated_text }}

{% endif %}
{% endif %} {% if current_user.is_admin %}
{{ _('Show on Frontpage') }}
{% if topic.show_on_frontpage %} {{ _('Yes, this topic should be shown on the frontpage') }}{% else %} {{ _('No, this topic should not be shown on the frontpage') }}{% endif %}
{{ _('Show in Navbar') }}
{% if topic.show_in_navbar %} {{ _('Yes, this topic should be shown in the navbar') }}{% else %} {{ _('No, this topic should not be shown in the navbar') }}{% 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 %} {% if topic_instruments %}

{{ _('Instruments') }}

{% for instrument in topic_instruments %}

{{ instrument.name | get_translated_text }} {{ import_information_symbol(instrument) }}

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

{{ instrument.short_description | get_translated_text }}

{% endif %}
{% endif %} {% endfor %} {% endif %} {% if topic_actions %}

{{ _('Actions') }}

{% for action in topic_actions %}

{% if action.user is not none %} {% set action_owner = get_user(action.user_id) %} {% set federated_user, imported_user = get_federated_identity(action_owner) %} {{ federated_user.get_name() }} {% if imported_user is not none %} {{ import_information_symbol(imported_user) }} / {% else %} {{ import_information_symbol(action_owner) }} / {% endif %} {% endif %} {% if action.instrument is not none and not config['DISABLE_INSTRUMENTS'] %} {{ action.instrument.name | get_translated_text(default=_('Unnamed Instrument')) }} {{ import_information_symbol(action.instrument) }} — {% endif %} {{ action.name | get_translated_text(default=_('Unnamed Action')) }} {{ import_information_symbol(action) }}

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

{{ action.short_description | get_translated_text }}

{% endif %}
{% endif %} {{ action.type.view_text | get_translated_text(default=_('View Objects')) }} {% if not current_user.is_readonly and action.type_id is not none and action.schema is not none and (not action.disable_create_objects) and (not action.type.disable_create_objects) and (not action.admin_only or current_user.is_admin) %} {{ action.type.perform_text | get_translated_text(default=_('Create Object')) }} {% endif %} {% endfor %} {% endif %} {% if locations_tree %}

{{ _('Locations') }}

{% endif %} {% else %}

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

{% endif %} {% endblock %}