diff -r 3685c2333448 -r c272d4c601cd templates/task/view.html --- a/templates/task/view.html Fri Feb 26 01:51:55 2010 +0530 +++ b/templates/task/view.html Fri Feb 26 02:52:32 2010 +0530 @@ -4,20 +4,30 @@ {% endblock %} {% block content %} {% if task_viewable %} - {% if is_mentor %} - Edit task - {% endif %}

{{ task.title }}


created by {{ task.created_by.username }} on {{ task.creation_datetime.ctime }}
- Mentors: + {% if is_mentor %} + Edit task + {% 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 %} - Add another Mentor to this task -
- edit task goes here and it should contain all those add subs and add deps depending on availability
+ + {% ifequal task.status "UP" %} + Request others to view/edit the task + {% else %} + Add another Mentor to this task + {% endifequal %}
{% endif %} {% if deps %}