{% if projects %} {% for item in projects %} {% set p = item.project %} {% set mods = item.modules or [] %} {% set mstatus = item.module_status or {} %} {% set has_sound = 'sound_monitoring' in mods %} {% set has_vib = 'vibration_monitoring' in mods %}

{{ p.name }}

{% set idbits = [] %} {% if p.project_number %}{% set _ = idbits.append(p.project_number) %}{% endif %} {% if p.client_name %}{% set _ = idbits.append(p.client_name) %}{% endif %} {% if idbits %}

{{ idbits | join(' · ') }}

{% endif %}
{% if p.status == 'active' %} Active {% elif p.status == 'upcoming' %} Upcoming {% elif p.status == 'on_hold' %} On Hold {% elif p.status == 'completed' %} Completed {% elif p.status == 'archived' %} Archived {% endif %}
{% if p.description %}

{{ p.description }}

{% endif %} {% set ms = item.module_stats %} {% if ms %}
{% if 'vibration' in ms %} {% set vst = mstatus.get('vibration_monitoring', 'active') %}
Vibration {% if vst == 'completed' %}{% elif vst == 'on_hold' %}{% endif %} {{ ms.vibration.locations }} location{{ '' if ms.vibration.locations == 1 else 's' }} · {{ ms.vibration.units }} unit{{ '' if ms.vibration.units == 1 else 's' }}
{% endif %} {% if 'sound' in ms %} {% set sst = mstatus.get('sound_monitoring', 'active') %}
Sound {% if sst == 'completed' %}{% elif sst == 'on_hold' %}{% endif %} {{ ms.sound.locations }} NRL{{ '' if ms.sound.locations == 1 else 's' }} · {{ ms.sound.units }} unit{{ '' if ms.sound.units == 1 else 's' }} · {% if ms.sound.recording > 0 %}{{ ms.sound.recording }} recording{% else %}0 recording{% endif %}
{% endif %}
{% else %}

Locations

{{ item.location_count }}

Units

{{ item.unit_count }}

{% endif %}
{% if has_sound or has_vib %}
{% if has_sound %} Sound {% endif %} {% if has_vib %} Vibration {% endif %}
{% endif %}
{% endfor %} {% else %}

No projects found

Create your first project to get started

{% endif %}