diff -r 439e419b6c13 -r 3bfe70742aa8 templates/task/view.html --- a/templates/task/view.html Wed Mar 03 05:36:21 2010 +0530 +++ b/templates/task/view.html Wed Mar 03 11:19:42 2010 +0530 @@ -3,165 +3,170 @@ {{task.title}} {% endblock %} {% block content %} - {% if task_viewable %} -

{{ task.title }}


+

{{ task.title }}

+ + {% if can_edit %} + Edit task + {% endif %} + + {% if can_publish %} + Publish task + {% endif %} + + {% if can_close %} + Close this task + {% endif %} + + {% if can_delete %} + Delete task + {% endif %} - {% if can_edit %} - Edit 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|linebreaksbr }} +


+ {% if task.tags.count %} + Tags: + {% for tag in task.tags %} + {{tag}} + {% endfor %} +
+ {% endif %} + + {% if deps %} + +
The task has following dependencies. - {% if can_publish %} - Publish task - {% endif %} - - {% if can_close %} - Close this task + {% if can_mod_tasks %} + add more dependencies + remove an existing dependency {% endif %} - {% if can_delete %} - Delete 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|linebreaksbr }} -


- {% if task.tags.count %} - Tags: - {% for tag in task.tags %} - {{tag}} - {% endfor %} -
- {% endif %} - - {% if deps %} - -
The task has following dependencies.