]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/statistics.html
New optional admin interface, and closing OSQA 253.
[osqa.git] / forum / skins / default / templates / osqaadmin / statistics.html
1 {% extends basetemplate %}
2
3 {% load i18n %}
4 {% load extra_tags %}
5
6 {% block adminjs %}
7 <script type='text/javascript' src='{% media  "/media/js/excanvas.min.js" %}'></script>
8 <script type='text/javascript' src='{% media  "/media/js/jquery.flot.min.js" %}'></script>
9 <script type="text/javascript">
10         $().ready(function(){
11         {% for graph in graphs %}
12             var {{ graph.id }} = {{ graph.data }};
13             var {{ graph.id }}_placeholder = $('#{{ graph.id }}');
14
15             $.plot({{ graph.id }}_placeholder, [{{ graph.id }}], {
16                 xaxis: { mode: "time" },
17                 points: { show: false },
18                 lines: { show: true }
19             });
20         {% endfor %}
21         });
22 </script>
23 {% endblock %}
24
25 {% block subtitle %}{% trans "Dashboard" %}{% endblock %}
26 {% block pagename %}{% trans "Dashboard" %}{% endblock %}
27 {% block description %}{% trans "Some simple graphics to help you get a notion of whats going on in your site." %}{% endblock %}
28
29 {% block admincontent %}
30 {% for graph in graphs %}
31     {% include "osqaadmin/graph.html" %}
32 {% endfor %}
33 {% endblock %}