{% extends "base.html" %} {% block title %}{{ _('Instrument') }} #{{ instrument.id }}: {{ single_instrument_translation.name }} — {{ service_name }}{% endblock %} {% block content %}
{{ _('This instrument has been hidden from instrument lists.')}}
{% endif %} {% if single_instrument_translation.description %}{{ single_instrument_translation.description }}
{% endif %}{{ action_translations[action.id].short_description }}
{% endif %}{{ _('These notes are only visible to the instrument scientists.')}} {{ _('Read more.')}}
{% with ns = namespace() %} {% set ns.has_notes = False %} {% for translation in instrument_translations %} {% if translation.notes %} {% set ns.has_notes = True %}{{ translation.notes }}
{% endif %}{% if is_instrument_responsible_user %} {{ _('Instrument scientists can use the instrument log to keep track of problems, maintenance or other events.') }} {{ _('Instrument scientists can edit the instrument settings to configure whether users can create or view log entries.', edit_url=url_for('.edit_instrument', instrument_id=instrument.id)) }} {% if instrument.users_can_view_log_entries and instrument.users_can_create_log_entries %} {{ _('Currently, users can create and view log entries.') }} {% elif instrument.users_can_create_log_entries %} {{ _('Currently, users cannot view log entries, but they can create new entries.') }} {% elif instrument.users_can_view_log_entries %} {{ _('Currently, users can view log entries, but they cannot create new entries.') }} {% else %} {{ _('Currently, users can neither create nor view log entries.') }} {% endif %} {% else %} {% if instrument.users_can_view_log_entries %} {{ _('Instrument scientists can use the instrument log to keep track of problems, maintenance or other events.') }} {% endif %} {% if instrument.users_can_create_log_entries %} {{ _('Users can create entries in the instrument log to notify instrument scientists about any issues they encounter.') }} {% endif %} {% endif %} {{ _('Read more.')}}
{% if is_instrument_responsible_user or instrument.users_can_view_log_entries %} {% if instrument_log_entries %}{{ log_entry.versions[-1].content }}{% endif %} {% else %} — {% endif %}
{{ version.content }}{% endif %} {% else %} — {% endif %}
{{ _('There are no log entries for this instrument.') }}
{% if not current_user.is_readonly and (is_instrument_responsible_user or instrument.users_can_create_log_entries) %} {% endif %} {% endif %} {% endif %} {% if not current_user.is_readonly and (is_instrument_responsible_user or instrument.users_can_create_log_entries) %} {% set log_entry_text_missing = [] %} {% for message in get_flashed_messages() %} {% if 'Please enter a log entry text' in message %} {{ log_entry_text_missing.append(True) or '' }} {% endif %} {% endfor %}