]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/sidebar/recent_awards.html
Show the name of the user on the accepted answer notification.
[osqa.git] / forum / skins / default / templates / sidebar / recent_awards.html
index c2c1b2628dbbe79a15a63cfb63c116dd13c91a4f..b530677af4f8214dd6eb81659fdbff0fe500a128 100644 (file)
@@ -6,9 +6,9 @@
          <ul class="badge-list">\r
          {% for award in awards %}\r
             <li>\r
-            <a href="{% url badges %}{{award.badge_id}}/{{award.badge_name}}" title="{{ award.badge_description }}" class="medal">\r
-            <span class="badge{{ award.badge_type }}">&#9679;</span>&nbsp;{{ award.badge_name }}</a>\r
-            <a href="/users/{{ award.user_id }}/{{ award.user_name|slugify }}/">{{ award.user_name }}</a>\r
+            <a href="{% url badges %}{{award.badge.id}}/{{award.badge.name|slugify}}" title="{{ award.badge.description }}" class="medal">\r
+            <span class="badge{{ award.badge.type }}">&#9679;</span>&nbsp;{{ award.badge.name }}</a>\r
+            <a href="{{ award.user.get_profile_url }}">{{ award.user.username }}</a>\r
             </li>\r
         {% endfor %}\r
         </ul>\r