{% 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 %} {% 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
{{ unit.id }} {% if unit.deployed %} Deployed {% elif unit.out_for_calibration %} Out for Cal {% else %} Benched {% endif %} {% if unit.deployed_with_modem_id %} {{ unit.deployed_with_modem_id }} {% else %} None {% endif %} {% if unit.address %} {{ unit.address }} {% elif unit.coordinates %} {{ unit.coordinates }} {% else %} {% endif %} {% if unit.last_calibrated %} {% if unit.next_calibration_due and today %} {% set days_until = (unit.next_calibration_due - today).days %} {% if days_until < 0 %} {% elif days_until <= 14 %} {% else %} {% endif %} {% else %} {% endif %} {{ unit.last_calibrated.strftime('%Y-%m-%d') }} {% else %} {% endif %} {% if unit.note %} {{ unit.note }} {% else %} {% endif %} View Details →
{% 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 %}