diff gpp/templates/forums/display_post.html @ 204:b4305e18d3af

Resolve ticket #74. Add user badges. Some extra credit was done here: also refactored how pending news, links, and downloads are handled.
author Brian Neal <bgneal@gmail.com>
date Sat, 01 May 2010 21:53:59 +0000
parents 98d658afd4bf
children fad7548b7f6e
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Wed Apr 28 03:00:31 2010 +0000
+++ b/gpp/templates/forums/display_post.html	Sat May 01 21:53:59 2010 +0000
@@ -10,6 +10,9 @@
       {% if post.user_profile.location %}
       Location: {{ post.user_profile.location }}<br />
       {% endif %}
+      {% for bo in post.user_profile.badge_ownership %}
+         <img src="{{ bo.badge.image.url }}" alt="{{ bo.badge_count_str }}" title="{{ bo.badge_count_str }}" />
+      {% endfor %}
       {% if user.is_authenticated %}
       <p>
       <a href="{% url messages-compose_to post.user.username %}">