{% extends "base.html" %} {% block title %}Action #{{ action.id }}: {{ action.name }} — {{ service_name }}{% endblock %} {% block content %}

{% if action.user is not none %} {{ action.user.name }} / {% endif %} {% if action.instrument is not none %} {{ action.instrument.name }} — {% endif %} {{ action.name }}

{% if action.user_id is not none %}

{% if is_public %}{% else %}{% endif %} This custom action is {% if not is_public %}not {% endif %}public.

{% endif %}

{{ action.description }}

{% with instrument = action.instrument %} {% include "instruments/instrument_scientists.html" %} {% endwith %} {% if action.type == ActionType.MEASUREMENT %} View Measurements {% if not current_user.is_readonly %} Perform Measurement {% endif %} {% elif action.type == ActionType.SIMULATION %} View Simulations {% if not current_user.is_readonly %} Perform Simulation {% endif %} {% else %} View Samples {% if not current_user.is_readonly %} Create Sample {% endif %} {% endif %} {% if not current_user.is_readonly %} {% if may_edit %} Edit Action {% endif %} Use as Template {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}