1 {% extends "user.html" %}
2 <!-- user_reputation.html -->
4 {% load extra_filters %}
7 <script type='text/javascript' src='{% media "/media/js/excanvas.min.js" %}'></script>
8 <script type='text/javascript' src='{% media "/media/js/jquery.flot.min.js" %}'></script>
10 <script type="text/javascript">
12 var d = {{ graph_data }};
13 var placeholder = $("#diagram");
15 var plot = $.plot(placeholder, [d], {
16 xaxis: { mode: "time" },
17 points: { show: true },
24 {% block usercontent %}
25 <div style="padding:5px;font-size:13px;">
26 <div id="diagram" style="width:550px;height:250px;float:left">
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>
37 {{ rep.action.describe|safe }}<br/><span class="small">({{ rep.date }})</span>
42 {% endblock %}<!-- end user_reputation.html -->