Make the created by line use the new templatetag in tasks view page.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 21 Jan 2011 02:12:25 +0530
changeset 508 438afe31fffd
parent 507 1d4631fcebd0
child 509 288d1dfb81c0
Make the created by line use the new templatetag in tasks view page.
pytask/templates/task/view.html
--- a/pytask/templates/task/view.html	Fri Jan 21 02:11:59 2011 +0530
+++ b/pytask/templates/task/view.html	Fri Jan 21 02:12:25 2011 +0530
@@ -2,12 +2,16 @@
 
 
 {% load form_helpers %}
+{% load browse_helpers %}
+
 
 {% block title %}
   {{task.title}}
 {% endblock %}
 
 {% block content %}
+  {% as_modification_display "Created by" task.created_by task.creation_datetime %}
+
   <h3>{{ task.title }}</h3>
 
   {% if can_edit %}
@@ -22,14 +26,6 @@
     <a href="{% url close_task task.id %}">Close task</a>
   {% endif %}
 
-  <hr />created by
-  <a href="{% url view_user_profile 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 reviewers %}
     Reviewers:
     {% for reviewer in reviewers %}