Mercurial > public > sg101
diff gpp/templates/bio/view_profile.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 | d51743322bb2 |
children | a46788862737 |
line wrap: on
line diff
--- a/gpp/templates/bio/view_profile.html Wed Apr 28 03:00:31 2010 +0000 +++ b/gpp/templates/bio/view_profile.html Sat May 01 21:53:59 2010 +0000 @@ -55,6 +55,16 @@ {% endif %} <tr><th>Elsewhere</th><td>{% elsewhere_links subject %}</td></tr> <tr><th>Time Zone</th><td>{{ profile.time_zone }}</td></tr> + <tr><th>Badges</th><td> + {% if badge_collection %} + <table id="badge_summary"> + <tr><th>Badge</th><th>Qty.</th><th>Name</th><th>Description</th></tr> + {% for bo in badge_collection %} + <tr><td>{{ bo.badge.html|safe }}</td><td>{{ bo.count }}</td><td>{{ bo.badge.name }}</td><td>{{ bo.badge.description }}</td></tr> + {% endfor %} + </table> + {% endif %} + </td></tr> </table> </div> {% if this_is_me %}