diff -r 1eb24b1662cf -r 1cc8d0b2eefb pytask/templates/task/view.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/templates/task/view.html Sun Jan 09 00:53:51 2011 +0530 @@ -0,0 +1,138 @@ +{% extends 'base.html' %} +{% block title %} + {{task.title}} +{% endblock %} +{% block content %} +

{{ task.title }}

+ + {% if can_edit %} + Edit task + {% endif %} + + {% if can_publish %} + Approve task + {% endif %} + + {% if can_close %} + Close task + {% 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 %} + Reviewers: + {% endifequal %} + + {% for reviewer in reviewers %} + {{reviewer.username}} + {% endfor %} + + {% if can_mod_reviewers %} + + {% ifequal task.status "UP" %} + Request others to view/edit the task + {% else %} + Add another Reviewer to this task + {% endifequal %} + {% endif %} +
+ +
+ Description:
+ {{ task.desc|linebreaksbr }} +


+ {% if task.tags.count %} + Tags: + {% for tag in task.tags %} + {{tag}} + {% endfor %} +
+ {% endif %} + + + {% 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 %} + + {% 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 subs %} +
This task cannot be claimed.. It exists only to show all of its sub tasks in one place.
+ {% endif %} + + {% if assigned_users %} + Users working on this task: + {% for user in assigned_users %} + {{user.username}} + {% endfor %} + {% if is_reviewer %} + Remove an existing user + {% endif %} +
+ {% endif %} + + {% if can_assign_pynts %} + View/Assign pynts + {% endif %} + + {% if task_claimable %} + + {% if is_reviewer %} + View claims + {% else %} + Submit Work + Claim the task + {% endif %} + {% endif %} + + {% if comments %} +
+ comments:

+ {% for comment in comments %} + {{ comment.created_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 %} + {% endif %} +{% endblock %}