added filter on time for view task request notification.
authornishanth
Sun, 28 Feb 2010 02:07:51 +0530
changeset 134 3a49a7e23442
parent 133 34187a80d279
child 135 0ede6b2c5cd1
added filter on time for view task request notification.
templates/task/view.html
templates/user/view_notification.html
templates/user/view_request.html
--- a/templates/task/view.html	Sun Feb 28 01:15:15 2010 +0530
+++ b/templates/task/view.html	Sun Feb 28 02:07:51 2010 +0530
@@ -6,7 +6,8 @@
     {% if task_viewable %}
         <h3>{{ task.title }}</h3><br />
         <!-- we have to write our own datetime.strftime filter and use in the next line -->
-        created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
+        created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a>
+        on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br />
 
         {% if is_mentor %}
         
--- a/templates/user/view_notification.html	Sun Feb 28 01:15:15 2010 +0530
+++ b/templates/user/view_notification.html	Sun Feb 28 02:07:51 2010 +0530
@@ -17,7 +17,7 @@
     <form action="delete/" method="post"> <input type="submit" value="Delete"> </form>
     <form action="unread/" method="post"> <input type="submit" value="Keep Unread"> </form>
     <br />
-    sent at {{notification.sent_date}}<br />
+    sent on {{notification.sent_date|date:"D d M Y"}} at {{notification.sent_date|time:"H:i"}}<br />
     Sub: {{notification.sub}}<br />
     <br />
         {{notification.message|safe}}
--- a/templates/user/view_request.html	Sun Feb 28 01:15:15 2010 +0530
+++ b/templates/user/view_request.html	Sun Feb 28 02:07:51 2010 +0530
@@ -19,7 +19,7 @@
         <a href="/user/view/uid={{to_user.id}}">{{to_user.username}}</a>&nbsp;
     {% endfor %}
     <br />
-    sent at {{req.creation_date}}<br />
+    sent on {{notification.sent_date|date:"D d M Y"}} at {{notification.sent_date|time:"H:i"}}<br />
     Message: <br />
     {% ifequal "PY" req.role %}
         <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to