{% extends 'base.html' %} {% load format_tags %} {% block title %}Projects | FoxFitt{% endblock %} {% block content %}
{{ total_count }} project{{ total_count|pluralize }} {% if q %} matching "{{ q }}"{% endif %} {% if status != 'all' %} — {{ status|capfirst }} only{% endif %}
| Name | Supervisors | Workers | Start | End | Active | Actions |
|---|---|---|---|---|---|---|
| {{ p.name }} | {% for s in p.supervisors.all|slice:":2" %}{{ s.username }}{% if not forloop.last %}, {% endif %}{% endfor %} {% if p.supervisors.count > 2 %} +{{ p.supervisors.count|add:"-2" }}{% endif %} {% if p.supervisors.count == 0 %}—{% endif %} | {{ p.workers_count }} | {{ p.start_date|date:"d M Y"|default:'—' }} | {{ p.end_date|date:"d M Y"|default:'—' }} | {% if p.active %}Active {% else %}Inactive{% endif %} |
No projects{% if q %} match "{{ q }}"{% endif %}.
{% if q or status != 'active' %}
Clear filters{% endif %}