{% extends "base.html" %}
{% block title %}{{ instrument.name|default:"Instrument not found" }} - Reduction variables{% endblock %}
{% load static %}
{% block body %}
    {% if instrument %}
    <div class="row">
        <div class="col-md-12 text-center">
            <h2>{{ instrument.name }} - Reduction Variables</h2>
        </div>
        <div class="row">
            <div class="col-md-12 text-center">
                {% include "snippets/instrument_summary.html" with instrument=instrument current_arguments=current_arguments upcoming_arguments_by_run=upcoming_arguments_by_run upcoming_arguments_by_experiment=upcoming_arguments_by_experiment%}
            </div>
        </div>
    {% else %}
        <div class="text-center col-md-6 col-md-offset-3 card card-body" id="message">
            {{ message }}
        </div>
    {% endif %}
{% endblock %}

{% block stylesheets %}
    <link rel="stylesheet" href="{% static 'css/vendor/prettify.css' %}">
{% endblock %}
{% block scripts %}
    <script src="{% static 'javascript/vendor/prettify.js' %}"></script>
    <script src="{% static 'javascript/run_variables.js' %}"></script>
{% endblock %}
