]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/reputation.html
OSQA-600, notification templates unicode fixes.
[osqa.git] / forum / skins / default / templates / users / reputation.html
1 {% extends "user.html" %}
2 <!-- user_reputation.html -->
3 {% load extra_tags %}
4 {% load extra_filters %}
5 {% load humanize %}
6 {% load user_tags %}
7 {% block userjs %}
8        <script type='text/javascript' src='{% media  "/media/js/excanvas.min.js" %}'></script>
9        <script type='text/javascript' src='{% media  "/media/js/jquery.flot.min.js" %}'></script>
10        
11        <script type="text/javascript">
12         $().ready(function(){
13             var d = {{ graph_data }};
14             var placeholder = $("#diagram");
15
16             var plot = $.plot(placeholder, [d], {
17                 xaxis: { mode: "time" },
18                 points: { show: true },
19                 lines: { show: true }
20             });
21         });
22
23         </script>
24 {% endblock %}
25 {% block usercontent %}
26         <div style="padding:5px;font-size:13px;">
27             <div id="diagram" style="width:550px;height:250px;float:left">
28
29             </div>
30             <div style="float:right; width:385px; height:300px; overflow-y:auto;word-wrap:break-word;" >
31                 {% for rep in reputation %}
32                 <p style="clear:both">
33                     <div style="float:left;text-align:right;font-family:arial;font-weight:bold;background:#eee;padding:2px 10px 2px 10px;margin-right:5px">
34                         <div style="float:left;width:20px;color:green;padding-right:5px">{{ rep.positive }}</div>
35                         <div style="float:left;width:20px;color:red">{{ rep.negative }}</div>
36                         
37                     </div>
38                     {% activity_item rep.action request.user %}<br/>
39                 </p>
40                 {% endfor %}
41             </div>
42         </div>
43 {% endblock %}<!-- end user_reputation.html -->