{% import "entry_macros.html" as macros %}
{% set title = "Projects List" %} {% set navigation = [('Projects', '')] %} {% include 'include_header.html' %} {% set is_manager = current_user.is_manager %} {{ macros.hidden_hour_id() }}
{% for p in projects %} {% set status = p['status'] %} {% if is_manager or status != 'disabled' %} {% set color = 'black' if status == 'active' else 'gray' %} {% set pi = p.user.get_pi() %} {% set apps = pi.get_applications() if pi else [] %} {% endif %} {% endfor %}
id status last updated user/pi title extra
{{ macros.project(p) }}
{% if p.user_can_edit %} {% endif %} {% if current_user.can_delete_project(p) %} {% endif %}
{{ p.status }} {{ p.last_update_date|pretty_datetime }} by {{ p.last_update_user.name }}{{ p.user|pairname }} {{ app }} {{ p.display_title }} {{ p.extra }}