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

{{ task.title }}


created by {{ task.created_by.username }} on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}
{% if is_mentor %} {% ifequal task.status "UP" %} Edit task {% else %} Close this task {% endifequal %} {% if can_publish %} Publish task {% endif %}
{% endif %} {% 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 %} {% 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 %}

Description:

{{ task.desc }}

{% ifnotequal task.status "CM" %} {% if assigned_users %} Users working on this task: {% for user in assigned_users %} {{user.username}}| {% endfor %} {% if is_mentor %} Remove an existing user
{% endif %} {% else %} There are no users currently working on this task.
{% endif %} {% if can_assign_credits %} View/Assign credits {% endif %} {% if not is_guest and task_claimable %} View claims
{% endif %} {% else %} {% ifequal task.status "CD" %} The task has been closed by .. due to .. {% else %} The task is complete. {% endifequal %} {% endifnotequal %} {% if comments %}

comments:
{% for comment in comments %}
{{ comment.created_by.username }} at {{ comment.creation_datetime.ctime }} 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 %}