diff -r e743fe1f0f99 -r f670de53402b templates/task/view.html --- a/templates/task/view.html Wed Feb 24 11:04:11 2010 +0530 +++ b/templates/task/view.html Wed Feb 24 13:14:00 2010 +0530 @@ -3,49 +3,73 @@ {{task.title}} {% endblock %} {% block content %} - Browse tasks -

{{ task.title }}


- - created by {{ task.created_by.username }} on {{ task.creation_datetime.ctime }}
- Mentors: - {% for mentor in mentors %} - {{mentor.username}}| - {% endfor %} - {% if is_mentor %} -
Add another Mentor to this task
- edit task goes here and it should contain all those add subs and add deps depending on availability
- {% endif %} -
-
Description:
-
{{ task.desc }}
-
- status of task is {{task.status}}
- {% if assigned_users %} - Users working on this task: - {% for user in assigned_users %} - {{user.username}}| - {% endfor %} -
- {% endif %} - {% if not is_guest %} - View claims
- {% endif %} - - {% if comments %} -
-
comments:
- {% for comment in comments %} -
{{ comment.created_by.username }} at {{ comment.creation_datetime.ctime }} wrote:
- {{ comment.data }}
+ {% if task_viewable %} + Browse tasks +

{{ task.title }}


+ + created by {{ task.created_by.username }} on {{ task.creation_datetime.ctime }}
+ Mentors: + {% for mentor in mentors %} + {{mentor.username}}| {% endfor %} - {% endif %} + {% if can_mod_mentors %} +
Add another Mentor to this task
+ edit task goes here and it should contain all those add subs and add deps depending on availability
+ {% endif %} - {% if not is_guest %} -
Add comment:
-
- -
- -
+ {% if deps %} +
The task has following dependencies + {% for dep in deps %} + {{dep.title}}
+ {% endfor %} + {% if can_mod_tasks %} + add more tasks + remove an existing task + {% endif %} + {% else %} + {%if can_mod_tasks %} + add a subtask/dependency + {%endif%} + {% endif %} + +
+
Description:
+
{{ task.desc }}
+
+ + status of task is {{task.status}}
+ {% if assigned_users %} + Users working on this task: + {% for user in assigned_users %} + {{user.username}}| + {% endfor %} +
+ {% endif %} + {%if can_assign_credits%} + Assign credits + {%endif%} + {% if not is_guest %} + View claims
+ {% endif %} + + {% 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 %} +
Add comment:
+
+ +
+ +
+ {% endif %} + {% else %} + You are not authorised to view this task. click here to return to browsing the tasks. {% endif %} {% endblock %}