]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/reputation.html
Implemented 'report user' feature
[osqa.git] / forum / skins / default / templates / users / reputation.html
index 9be35c86b071ebab959c410b48dbc0ae5cbcc730..fe06b6eae0fff222385d4401670a72485231a887 100644 (file)
@@ -3,6 +3,7 @@
 {% load extra_tags %}
 {% load extra_filters %}
 {% load humanize %}
 {% 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>
 {% 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>
         });
 
         </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;">
 {% 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">
                 {% 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>
                         
                     </div>
-                    <a href="{{ rep.action.node.get_absolute_url }}">{{ rep.action.node.headline }}</a> <span class="small">({{ rep.date }})</span>
+                    {% activity_item rep.action request.user %}<br/>
                 </p>
                 {% endfor %}
             </div>
                 </p>
                 {% endfor %}
             </div>