summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/base.html2
-rw-r--r--hyperkitty/templates/recent_activities.html24
2 files changed, 16 insertions, 10 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index c564468..1c5f544 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -73,7 +73,7 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ STATIC_URL }}libs/jquery/jquery-1.8.3.min.js"><\/script>')</script>
<script src="{{ STATIC_URL }}libs/jquery/jquery-ui-1.10.0.custom.min.js"></script>
- {% assets filters="rjsmin", output="gen/hyperkitty.js", "libs/bootstrap/bootstrap.min.js", "libs/jquery.expander.js", "libs/protovis-d3.1.js", "js/hyperkitty.js" %}
+ {% assets filters="rjsmin", output="gen/hyperkitty.js", "libs/bootstrap/bootstrap.min.js", "libs/jquery.expander.js", "libs/d3.v2.min.js", "js/hyperkitty.js" %}
<script src="{{ ASSET_URL }}"></script>
{% endassets %}
{% block additionaljs %} {% endblock %}
diff --git a/hyperkitty/templates/recent_activities.html b/hyperkitty/templates/recent_activities.html
index 172b992..233067c 100644
--- a/hyperkitty/templates/recent_activities.html
+++ b/hyperkitty/templates/recent_activities.html
@@ -19,15 +19,7 @@
<section id="graph">
<h2>Activities on the list over the last 30 days</h2>
- <div id="fig">
- <script type="text/javascript+protovis" >
- activity_graph(
- ["{{days|join:'","'}}"],
- {{evolution}},
- "{{ archives_baseurl }}"
- );
- </script>
- </div>
+ <div id="fig" />
</section>
<div class="row-fluid">
@@ -112,5 +104,19 @@
{% endblock %}
+{% block additionaljs %}
+
+<script type="text/javascript" >
+ $(function() {
+ activity_graph(
+ "#fig",
+ ["{{days|join:'","'}}"],
+ {{evolution}},
+ "{{ archives_baseurl }}"
+ )
+ });
+</script>
+
+{% endblock %}
{# vim: set noet: #}