# HG changeset patch # User Nishanth Amuluru # Date 1294567206 -19800 # Node ID 32457bce3437b399c853dc5b94c975b076cc10e5 # Parent 2763afa1c2a28b52b49e25c174fba31303c2b3fb prettified a few pages diff -r 2763afa1c2a2 -r 32457bce3437 pytask/taskapp/views.py --- a/pytask/taskapp/views.py Sun Jan 09 15:09:13 2011 +0530 +++ b/pytask/taskapp/views.py Sun Jan 09 15:30:06 2011 +0530 @@ -103,6 +103,7 @@ is_creator = True if user == task.created_by else False has_claimed = True if user in claimed_users else False + context['selected_users'] = selected_users context['is_selected'] = True if user in selected_users else False context['can_approve'] = True if task.status == "UP" and\ profile.rights in ["MG", "DC"]\ diff -r 2763afa1c2a2 -r 32457bce3437 pytask/templates/index.html --- a/pytask/templates/index.html Sun Jan 09 15:09:13 2011 +0530 +++ b/pytask/templates/index.html Sun Jan 09 15:30:06 2011 +0530 @@ -14,19 +14,9 @@
{% endif %} - - {% if unpublished_tasks %} - Unpublished tasks viewable by you: -
- {% endif %} - - {% if reviewered_tasks %} + {% if reviewing_tasks %} Tasks you are reviewering: diff -r 2763afa1c2a2 -r 32457bce3437 pytask/templates/task/view.html --- a/pytask/templates/task/view.html Sun Jan 09 15:09:13 2011 +0530 +++ b/pytask/templates/task/view.html Sun Jan 09 15:30:06 2011 +0530 @@ -21,7 +21,7 @@ Delete task {% endif %} -
created by {{ task.created_by.username }} +
created by {{ task.created_by.username }} on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}
{% if reviewers %} @@ -84,12 +84,9 @@ {% if selected_users %} Users working on this task: - {% for user in assigned_users %} + {% for user in selected_users %} {{user.username}} {% endfor %} - {% if is_reviewer %} - Remove an existing user - {% endif %}
{% endif %} @@ -101,7 +98,6 @@ Request assign pynts and mark the task as complete {% endif %} - {% if is_selected %} Submit Work {% endif %} @@ -112,9 +108,10 @@ {% for comment in comments %} {{ comment.commented_by.username }} on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:
- {{ comment.data|linebreaksbr }}

+ {{ comment.data|linebreaksbr }}
{% endfor %} {% endif %} +
{% if can_comment %} Add comment: