diff -r 52958289d81f -r 7cad1e92713d templates/task/view.html
--- a/templates/task/view.html Mon Mar 01 02:09:00 2010 +0530
+++ b/templates/task/view.html Mon Mar 01 04:44:49 2010 +0530
@@ -5,40 +5,46 @@
{% 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 %}
+ {% if can_edit %}
+ Edit task
+ {% endif %}
- {% ifequal task.status "UP" %}
- Edit task
- {% else %}
- Close this task
- {% endifequal %}
-
- {% if can_publish %}
- Publish task
- {% endif %}
-
+ {% if can_close %}
+ Close this task
{% endif %}
+
+ {% if can_publish %}
+ Publish 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}}|
+ {{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 %}
+ {% endifequal %}
{% endif %}
+
+
+
+ Description:
+ {{ task.desc }}
+
{% if deps %}
@@ -75,51 +81,55 @@
{% endif %}
{% endif %}
-
-
-
Description:
-
{{ task.desc }}
-
+ {% ifequal task.status "CD" %}
+ Task has been closed by {{closing_notification.sent_from.username}}
+ on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}
+ Reason: {{closing_notification.remarks}}
+ {% endifequal %}
- {% 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.
+ {% ifequal task.status "CM" %}
+ Task has been marked complete by
+ {{completed_notification.sent_from.username}}
+ on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}
+ {% endifequal %}
+
+ {% ifequal task.status "OP" %}
+
There are no users working on this task.
+ {% endifequal %}
+
+ {% if assigned_users %}
+ Users working on this task:
+ {% for user in assigned_users %}
+ {{user.username}}
+ {% endfor %}
+ {% if is_mentor %}
+ Remove an existing user
{% 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 %}
+
+ {% endif %}
+
+ {% if can_assign_credits %}
+ View/Assign credits
+ {% endif %}
+
+ {% if task_claimable %}
+ View claims
+ {% endif %}
{% if comments %}
-
comments:
+ comments:
{% for comment in comments %}
-
{{ comment.created_by.username }} at {{ comment.creation_datetime.ctime }} wrote:
- {{ comment.data }}
+ {{ comment.created_by.username }}
+ on {{ comment.creation_datetime|date:"D d M Y"}} at {{comment.creation_datetime|time:"H:i"}} wrote:
+ {{ comment.data }}
{% endfor %}
{% endif %}
{% if not is_guest %}
+
{% ifnotequal task.status "CM" %}
-
Add comment:
+ Add comment: