{% extends request.is_ajax|yesno:'bajax.html,base.html' %} {% load i18n tasktags %} {% block title %}{% trans 'All tasks' %}{% endblock %} {% block breadcrumb %}
{% endblock %} {% block page-header %} {% trans 'Records of all the tasks in the system' %} {% endblock %} {% block main %}| {% trans 'Name and comment count' %} | {% trans 'Address' %} | {% trans 'The nature of the damage' %} | {% trans 'Description' %} | {% trans 'Task author' %} | {% trans 'Condition' %} | {% trans 'Actions' %} | |||
|---|---|---|---|---|---|---|---|---|---|
| {# Task state #} {% if not task.is_relevant %} {% if task.priority == 'E' %} {% elif task.priority == 'A' %} {% endif %} {% endif %} {{ task.abon.get_full_name }} {% if task.comment_count > 0 %}({{ task.comment_count }}){% endif %} | {{ task.abon.group.title }}, {{ task.abon.street|default:_('Not assigned') }} {{ task.abon.house|default:_('Not assigned') }} | {% else %}{% trans 'User does not exist' %} | --- | {% endif %}{{ task.get_mode_display }} | {{ task.descr|default:_('None') }} | {% if task.author %} {{ task.author.username }} {% else %} {% trans 'Not assigned' %} {% endif %} | {{ task.get_state_display }} | {% is_today task.time_of_create as is_timecreate_is_today %} {% is_yesterday task.time_of_create as is_timecreate_is_yesterday %} {% if is_timecreate_is_today %} {% trans 'Today' %} {{ task.time_of_create|date:'H:i' }} {% elif is_timecreate_is_yesterday %} {% trans 'Yesterday' %} {{ task.time_of_create|date:'H:i' }} {% else %} {{ task.time_of_create|date:'d E H:i' }} {% endif %} | {% if perms.taskapp.change_task %} {% endif %} {% if perms.taskapp.can_remind %} {% endif %} |
| {% trans 'The list is empty' %} | |||||||||
| {% if perms.taskapp.add_task %} {% trans 'Add new task' %} {% endif %} | |||||||||