{% if units is defined %}
| Unit ID {% if sort == 'id' %} {% endif %} | {% set next_order = 'desc' if (sort == 'status' and order == 'asc') else 'asc' %}Status {% if sort == 'status' %} {% endif %} | {% set next_order = 'desc' if (sort == 'modem' and order == 'asc') else 'asc' %}Modem {% if sort == 'modem' %} {% endif %} | {% set next_order = 'desc' if (sort == 'location' and order == 'asc') else 'asc' %}Location {% if sort == 'location' %} {% endif %} | {% set next_order = 'desc' if (sort == 'last_calibrated' and order == 'asc') else 'asc' %}Last Calibrated {% if sort == 'last_calibrated' %} {% endif %} | {% set next_order = 'desc' if (sort == 'notes' and order == 'asc') else 'asc' %}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 → |
No seismographs match "{{ search }}"
{% else %}Get started by adding a seismograph unit from the roster page.
{% endif %}