{% if units is defined %}
{% set next_order = 'desc' if (sort == 'id' and order == 'asc') else 'asc' %} {% set next_order = 'desc' if (sort == 'status' and order == 'asc') else 'asc' %} {% set next_order = 'desc' if (sort == 'modem' and order == 'asc') else 'asc' %} {% set next_order = 'desc' if (sort == 'location' and order == 'asc') else 'asc' %} {% set next_order = 'desc' if (sort == 'last_calibrated' and order == 'asc') else 'asc' %} {% set next_order = 'desc' if (sort == 'notes' and order == 'asc') else 'asc' %} {% for unit in units %} {% include "partials/seismo_row_view.html" %} {% endfor %}
Unit ID {% if sort == 'id' %} {% endif %} Status {% if sort == 'status' %} {% endif %} Modem {% if sort == 'modem' %} {% endif %} Location {% if sort == 'location' %} {% endif %} Last Calibrated {% if sort == 'last_calibrated' %} {% endif %} Notes {% if sort == 'notes' %} {% endif %} Actions
{% if search or status or modem %}
Found {{ units|length }} seismograph(s) {% if search %} matching "{{ search }}"{% endif %} {% if status %} ({{ status }}){% endif %} {% if modem %} ({{ 'with modem' if modem == 'with' else 'without modem' }}){% endif %}
{% endif %} {% else %}

No seismographs found

{% if search %}

No seismographs match "{{ search }}"

{% else %}

Get started by adding a seismograph unit from the roster page.

{% endif %}
{% endif %}