{% extends "tasks/base.html" %} {# @@@ commonalities between this and task_list.html might need to be factored out #} {% load i18n %} {% load account_tags %} {% load shorttimesince_tag %} {% load order_by %} {% load humanize %} {% load tasks_tags %} {% load tagging_tags %} {% load group_tags %} {#}{% block head_title %}Tasks for {{ project.name }}{% endblock %}#} {% block head_title %}Tasks{% endblock %} {% block body %}

← {% trans "Back to All Tasks" %}

{#

{% trans "Tasks for Project" %} {{ group.name }}

#}

Tasks with {{ field }} = {{ value }}

{% if task_filter %}
{% if group_by %} {% endif %}
{% endif %}

Group by: {% ifequal group_by "state" %} last modified or state or assignee or tag {% order tasks by state %} {% regroup tasks by get_state_display as grouped_tasks %} {% else %} {% ifequal group_by "assignee" %} last modified or state or assignee or tag {% order tasks by assignee %} {% regroup tasks by assignee as grouped_tasks %} {% else %} {% ifequal group_by "tag" %} last modified or state or assignee or tag {# do no manipulation here as we'll special case below #} {% else %} last modified or state or assignee or tag {% order tasks by -modified %} {% regroup tasks by modified.date as grouped_tasks %} {% endifequal %} {% endifequal %} {% endifequal %}

expand allcollapse all

{% ifequal group_by "tag" %} {% tags_for_model tasks.Task as task_tags %} {% for section in task_tags %} {% tasks_for_tag section as tagtasks in tasks %} {% if tagtasks %} {% for item in tagtasks %} {% endfor %} {% endif %} {% endfor %} {% else %} {% for section in grouped_tasks %} {% for task in section.list %} {% endfor %} {% endfor %} {% endifequal %}
ID Summary Last Modified Assignee Status
{{ section }} ({{ tagtasks|length }})
{{ item.object.id }} {{ item.summary }} {{ item.modified|shorttimesince }} ago {% if item.assignee %} {% user_display item.assignee %} {% else %} unassigned {% endif %} {{ item.status }}
{% ifequal group_by "state" %} {{ section.grouper }} {% else %} {% ifequal group_by "assignee" %} {% if section.grouper %}{{ section.grouper }}{% else %}unassigned{% endif %} {% else %} {{ section.grouper|naturalday:_("MONTH_DAY_FORMAT")|capfirst }} {% endifequal %} {% endifequal %} ({{ section.list|length }})
{{ task.id }} {{ task.summary }} {{ task.modified|shorttimesince }} ago {% if task.assignee %} {% user_display task.assignee %} {% else %} unassigned {% endif %} {{ task.status }}

expand allcollapse all

{% endblock %}