diff -r 1cc8d0b2eefb -r 4cc40503bf3c pytask/templates/task/view.html --- a/pytask/templates/task/view.html Sun Jan 09 00:53:51 2011 +0530 +++ b/pytask/templates/task/view.html Sun Jan 09 08:37:28 2011 +0530 @@ -9,7 +9,7 @@ Edit task {% endif %} - {% if can_publish %} + {% if can_approve %} Approve task {% endif %} @@ -24,15 +24,18 @@
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 %} - Reviewers: - {% endifequal %} - - {% for reviewer in reviewers %} - {{reviewer.username}} - {% endfor %} + {% if reviewers %} + {% ifequal task.status "UP" %} + Task can be viewed by: + {% else %} + Reviewers: + {% endifequal %} + + {% for reviewer in reviewers %} + {{reviewer.username}} + {% endfor %} + {% endif %} + {% if can_mod_reviewers %} @@ -57,6 +60,7 @@ {% endif %} + - {% if assigned_users %} + {% if selected_users %} Users working on this task: {% for user in assigned_users %} {{user.username}} @@ -88,51 +93,36 @@
{% endif %} + {% if task_claimable %} + View claims + {% endif %} + {% if can_assign_pynts %} - View/Assign pynts + Request assign pynts and mark the task as complete {% endif %} - {% if task_claimable %} - - {% if is_reviewer %} - View claims - {% else %} + + {% if is_selected %} Submit Work - Claim the task - {% endif %} {% endif %} {% if comments %}
comments:

{% for comment in comments %} - {{ comment.created_by.username }} + {{ comment.commented_by.username }} on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:
{{ comment.data|linebreaksbr }}

{% endfor %} {% endif %} - {% if not is_guest %} -
- {% if error_msg %} - {{error_msg}}
- {% endif %} - {% ifnotequal task.status "UP" %} - Add comment:
-
- {% csrf_token %} - {{form.as_p}} - -
- {% else %} - {% if is_reviewer %} - Add comment:
-
- {% csrf_token %} - {{form.as_p}} - -
- {% endif %} - {% endifnotequal %} + {% if can_comment %} + Add comment:
+
+ {% csrf_token %} + {{form.as_p}} + +
{% endif %} + {% endblock %}