]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/reputation.html
OSQA-829, resolves a unicode problem when answering question, use smart_unicode for...
[osqa.git] / forum / skins / default / templates / users / reputation.html
index dfe5cd1dafb2dd959ee7bd6a1b6281f7f7459214..fe06b6eae0fff222385d4401670a72485231a887 100644 (file)
@@ -3,6 +3,7 @@
 {% load extra_tags %}
 {% load extra_filters %}
 {% load humanize %}
+{% load user_tags %}
 {% block userjs %}
        <script type='text/javascript' src='{% media  "/media/js/excanvas.min.js" %}'></script>
        <script type='text/javascript' src='{% media  "/media/js/jquery.flot.min.js" %}'></script>
         });
 
         </script>
+
+        <style type="text/css">
+            div.positiveReputation {
+                float: left;
+                min-width: 20px;
+                color: green;
+                padding-right: 5px;
+            }
+            div.negativeReputation {
+                float: left;
+                min-width: 20px;
+                color: red;
+            }
+        </style>
 {% endblock %}
 {% block usercontent %}
         <div style="padding:5px;font-size:13px;">
                 {% for rep in reputation %}
                 <p style="clear:both">
                     <div style="float:left;text-align:right;font-family:arial;font-weight:bold;background:#eee;padding:2px 10px 2px 10px;margin-right:5px">
-                        <div style="float:left;width:20px;color:green;padding-right:5px">{{ rep.positive }}</div>
-                        <div style="float:left;width:20px;color:red">{{ rep.negative }}</div>
+                        <div class="positiveReputation">{{ rep.positive }}</div>
+                        <div class="negativeReputation">{{ rep.negative }}</div>
                         
                     </div>
-                    {{ rep.action.describe|safe }}<br/><span class="small">({{ rep.date }})</span>
+                    {% activity_item rep.action request.user %}<br/>
                 </p>
                 {% endfor %}
             </div>