diff options
author | Leif Johansson <leifj@sunet.se> | 2012-01-17 12:19:44 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-01-17 12:19:44 +0100 |
commit | 47773eae78862b8346c5f328e0fa6b6cd71f9564 (patch) | |
tree | 3bd8cb003ff33be93ac00e6978d0b4b7e5d275db /src/templates/apps/stats/room.html | |
parent | 70b28292b99a5b2236d951beeaba7b9aa54ea67e (diff) |
per-room usage statistics too
Diffstat (limited to 'src/templates/apps/stats/room.html')
-rw-r--r-- | src/templates/apps/stats/room.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/templates/apps/stats/room.html b/src/templates/apps/stats/room.html new file mode 100644 index 0000000..7a2a25f --- /dev/null +++ b/src/templates/apps/stats/room.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% load datehumanize %} +{% load prefix %} +{% block widgets %} +$.ajax({ + url: '{% prefix %}/api/stats/room/{{room.id}}', + method: 'GET', + success: function (resp) { + var graph = $('#graph'); + series = [{label: 'Meeting minutes for {{room.name}}',data: resp['data']}]; + $.plot(graph,series,{ + lines: { show: true }, + points: { show: true }, + xaxis: { mode: "time" } + }); + $('#minutes').append(resp['minutes']); + $('#users').append(resp['users']); + } +}); +{% endblock %} +{% block content %} +<h1>Meeting statistics for {{room.name}}</h1> +<div id="graph" style="width:600px;height:300px; display: block; float: left; margin-right: 30px;"></div> +<div> +<h2>Summary</h2> +<table> + <tr><td><b>Total minutes:</b></td><td id="minutes"></td></tr> + <tr><td><b>Total unique users:</b></td><td id="users"></td></tr> + <tr><td colspan="2" style="padding-top: 10px;"><a href="{% prefix %}/stats">Look at your own statistics</a></td></tr> +</table> +</div> +{% endblock %}
\ No newline at end of file |