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