[extensions-web] Linkify the comment username to the profile



commit c99e01eca58399bad2b08bda2108470d7e40b47b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Nov 13 22:00:42 2011 -0500

    Linkify the comment username to the profile

 .../extensions/templates/extensions/comments.html  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/comments.html b/sweettooth/extensions/templates/extensions/comments.html
index 618eaf3..cacc5ec 100644
--- a/sweettooth/extensions/templates/extensions/comments.html
+++ b/sweettooth/extensions/templates/extensions/comments.html
@@ -11,7 +11,7 @@
       <div class="rating">
         {% rating comment.rating 5 %}
       </div> by
-      <span class="comment-author">{{ comment.user_name }}</span>
+      <a class="comment-author" href="{% url auth-profile user=comment.user.username %}">{{ comment.user }}</span>
     </div>
     <p>{{ comment.comment }}</p>
     <abbr class="timestamp" title="{{ comment.submit_date|date:"c" }}">{{ comment.submit_date|date:"F j, Y" }}</abbr>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]