diff -r ea962d5fe99e -r 38793914921b templates/task/view.html --- a/templates/task/view.html Fri Feb 26 11:34:17 2010 +0530 +++ b/templates/task/view.html Fri Feb 26 13:22:13 2010 +0530 @@ -7,6 +7,7 @@

{{ task.title }}


created by {{ task.created_by.username }} on {{ task.creation_datetime.ctime }}
+ if task_editable ..
{% if is_mentor %} Edit task {% if can_publish %}|Publish task{% endif %} @@ -71,25 +72,32 @@
{{ task.desc }}

- status of task is {{task.status}}
- {% if assigned_users %} - Users working on this task: - {% for user in assigned_users %} - {{user.username}}| - {% endfor %} - {% if is_mentor %} - Remove an existing user -
+ {% 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 %} + Assign credits + {% endif %} + {% if not is_guest and task_claimable %} + View claims for this task.
{% endif %} {% else %} - There are no users currently working on this task.
- {% endif %} - {% if can_assign_credits %} - Assign credits - {% endif %} - {% if not is_guest and task_claimable %} - View claims for this task.
- {% endif %} + {% ifequal task.status "CD" %} + The task has been closed by .. due to .. + {% else %} + The task is complete. + {% endifequal %} + {% endifnotequal %} {% if comments %}
@@ -101,12 +109,14 @@ {% endif %} {% if not is_guest %} -
Add comment:
-
- -
- -
+ {% 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.