summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/overview.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-11-13 12:47:42 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-11-20 19:15:40 +0100
commitcdf8249b4cb0a05e88c181674aa0a70f25019e00 (patch)
treedcb444f60b8dfb0be7a8f9840e18c939f608ed68 /hyperkitty/templates/overview.html
parent85037f95b2b22a812938dc19aa2a9da35a6ea46f (diff)
downloadhyperkitty-cdf8249b4cb0a05e88c181674aa0a70f25019e00.tar.gz
hyperkitty-cdf8249b4cb0a05e88c181674aa0a70f25019e00.tar.xz
hyperkitty-cdf8249b4cb0a05e88c181674aa0a70f25019e00.zip
Front page redesign
Diffstat (limited to 'hyperkitty/templates/overview.html')
-rw-r--r--hyperkitty/templates/overview.html27
1 files changed, 7 insertions, 20 deletions
diff --git a/hyperkitty/templates/overview.html b/hyperkitty/templates/overview.html
index 098e609..a5dc32f 100644
--- a/hyperkitty/templates/overview.html
+++ b/hyperkitty/templates/overview.html
@@ -25,7 +25,7 @@
<section id="statistics">
- <div id="chart"></div>
+ <div id="chart" data-chart-values="{{ evolution|to_json }}"></div>
<p class="caption">Post volume over the past <strong>30</strong> days.</p>
<p class="thread-new">
@@ -37,8 +37,8 @@
<h3>Activity Summary</h3>
<p>The following statistics are from the past <strong>30</strong> days:</p>
<ul class="list-stats">
- <li><span class="participant">{{ num_participants }} participants</span></li>
- <li><span class="discussion">{{ num_threads }} discussions</span></li>
+ <li><span class="participant">{{ mlist.recent_participants_count }} participants</span></li>
+ <li><span class="discussion">{{ mlist.recent_threads_count }} discussions</span></li>
</ul>
<section id="discussion-maker" class="widget">
@@ -145,24 +145,11 @@
{% block additionaljs %}
<script type="text/javascript" >
-/*
$(function() {
- activity_graph(
- "#fig",
- ["{{days|join:'","'}}"],
- {{evolution}},
- "{{ archives_baseurl }}"
- )
- });
-*/
-
- $(function() {
- chart(
- "#chart",
- ["{{days|join:'","'}}"],
- {{evolution}},
- "{{ archives_baseurl }}"
- )
+ $("#chart").each(function() {
+ chart($(this).get(0),
+ $.parseJSON($(this).attr("data-chart-values")));
+ });
});
</script>