diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2013-11-28 12:25:25 +0100 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2013-11-28 14:05:18 +0100 |
| commit | dc34f0e874c42018e11ed951efc5b3fcfe7e8feb (patch) | |
| tree | d9aae53bff1beb78a076ecdbd65c86cefd22c85d /hyperkitty/templates/overview.html | |
| parent | c976dc96c79a897b55ca8430b824eb8063cd0403 (diff) | |
| download | hyperkitty-dc34f0e874c42018e11ed951efc5b3fcfe7e8feb.tar.gz hyperkitty-dc34f0e874c42018e11ed951efc5b3fcfe7e8feb.tar.xz hyperkitty-dc34f0e874c42018e11ed951efc5b3fcfe7e8feb.zip | |
Load the list's recent activity via AJAX
Diffstat (limited to 'hyperkitty/templates/overview.html')
| -rw-r--r-- | hyperkitty/templates/overview.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/hyperkitty/templates/overview.html b/hyperkitty/templates/overview.html index edb98ca..b8be4ae 100644 --- a/hyperkitty/templates/overview.html +++ b/hyperkitty/templates/overview.html @@ -18,7 +18,7 @@ {% include 'threads/month_list.html' %} <section id="overview" class="span10"> - + <section id="title"> <h2> {% if mlist.display_name %} @@ -28,12 +28,13 @@ {% endif %} </h2> <p id="description">{{ mlist.description|default_if_none:"" }}</p> - + <section id="statistics"> - - <div id="chart" data-chart-values="{{ evolution|to_json }}"></div> + + <div id="chart"> + </div> <p class="caption">Post volume over the past <strong>30</strong> days.</p> - + <p class="thread-new"> <a href="{% url "message_new" mlist_fqdn=mlist.name %}" class="thread-new btn{% if not user.is_authenticated %} disabled" title="You must be logged-in to create a thread.{% endif %}"> @@ -151,10 +152,7 @@ <script type="text/javascript" > $(function() { - $("#chart").each(function() { - chart($(this).get(0), - $.parseJSON($(this).attr("data-chart-values"))); - }); + ajax_chart("#chart", "{% url 'list_recent_activity' mlist.name %}"); }); </script> |
