summaryrefslogtreecommitdiffstats
path: root/templates/user_reputation.html
diff options
context:
space:
mode:
authorMike Chen <chagel@gmail.com>2009-07-05 10:23:30 +0800
committerMike Chen <chagel@gmail.com>2009-07-05 10:23:30 +0800
commit4347c2947834fe7f2edf2b457b2d513454fc6a03 (patch)
tree93e9d22d6fb8a6c882e3915a8511a3ac542a1e67 /templates/user_reputation.html
downloadaskbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.tar.gz
askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.tar.bz2
askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.zip
initiliaze git rep
Diffstat (limited to 'templates/user_reputation.html')
-rw-r--r--templates/user_reputation.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/user_reputation.html b/templates/user_reputation.html
new file mode 100644
index 00000000..aad8db44
--- /dev/null
+++ b/templates/user_reputation.html
@@ -0,0 +1,40 @@
+{% extends "user.html" %}
+{% load extra_tags %}
+{% load humanize %}
+{% block userjs %}
+ <script type='text/javascript' src='/content/js/excanvas.pack.js'></script>
+ <script type='text/javascript' src='/content/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="/questions/{{ rep.question_id }}/{{ rep.title }}">{{ rep.title }}</a> <span class="small">({{ rep.reputed_at }})</span>
+ </p>
+ {% endfor %}
+ </div>
+ </div>
+{% endblock %} \ No newline at end of file