{% extends 'base.html' %} {% block title %} {{task.title}} {% endblock %} {% block content %} {% if task_viewable %}

{{ task.title }}


{% if can_edit %} Edit task {% endif %} {% if can_close %} Close this task {% endif %} {% if can_publish %} Publish task {% endif %}
created by {{ task.created_by.username }} on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}
{% ifequal task.status "UP" %} Task can be viewed by: {% else %} Mentors: {% endifequal %} {% for mentor in mentors %} {{mentor.username}} {% endfor %} {% if can_mod_mentors %} {% ifequal task.status "UP" %} Request others to view/edit the task {% else %} Add another Mentor to this task {% endifequal %} {% endif %}

Description:
{{ task.desc }}
{% if deps %}
The task has following dependencies.
{% for dep in deps %} {{dep.title}}
{% endfor %} {% if can_mod_tasks %} add more dependencies remove an existing dependency {% endif %} {% else %} {% if subs %}
The task has following sub tasks.
{% for sub in subs %} {{sub.title}}
{% endfor %} {% if can_mod_tasks %} add more subtasks remove an existing subtask {% endif %} {% else %} {% if can_mod_tasks %} add a subtask/dependency {% endif %} {% endif %} {% endif %} {% ifequal task.status "CD" %} Task has been closed by {{closing_notification.sent_from.username}} on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}
Reason: {{closing_notification.remarks}}
{% endifequal %} {% ifequal task.status "CM" %} Task has been marked complete by {{completed_notification.sent_from.username}} on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}
{% endifequal %} {% ifequal task.status "OP" %}
There are no users working on this task.
{% endifequal %} {% if assigned_users %} Users working on this task: {% for user in assigned_users %} {{user.username}} {% endfor %} {% if is_mentor %} Remove an existing user {% endif %}
{% endif %} {% if can_assign_credits %} View/Assign credits {% endif %} {% if task_claimable %} View claims {% endif %} {% if comments %}
comments:

{% for comment in comments %} {{ comment.created_by.username }} on {{ comment.creation_datetime|date:"D d M Y"}} at {{comment.creation_datetime|time:"H:i"}} wrote:
{{ comment.data }}

{% endfor %} {% endif %} {% if not is_guest %}
{% ifnotequal task.status "CM" %} Add comment:

{% endifnotequal %} {% endif %} {% else %} You are not authorised to view this task. click here to return to browsing the tasks. {% endif %} {% endblock %}