blob: 776935ae8d45e7edf44aecc499b7e554085f7ea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{% extends "user.html" %}
<!-- user_reputation.html -->
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% block userjs %}
<script type='text/javascript' src='{% media "/media/js/excanvas.pack.js" %}'></script>
<script type='text/javascript' src='{% media "/media/js/jquery.flot.pack.js" %}'></script>
<script type="text/javascript">
$().ready(function(){
var d = {{ reps }};
var placeholder = $("#diagram");
var plot = $.plot(placeholder, [d], {
xaxis: { mode: "time" },
points: { show: true },
lines: { show: true }
});
});
</script>
{% endblock %}
{% block usercontent %}
<div style="padding:5px;font-size:13px;">
<div id="diagram" style="width:550px;height:250px;float:left">
</div>
<div style="float:right; width:385px; height:300px; overflow-y:auto;word-wrap:break-word;" >
{% 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>
<a href="{% url question rep.question_id %}{{ rep.title|slugify }}">{{ rep.title }}</a> <span class="small">({{ rep.reputed_at }})</span>
</p>
{% endfor %}
</div>
</div>
{% endblock %}<!-- end user_reputation.html -->
|