blob: 35a40fbea817b2cab63beaf2c6b099d878170661 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{% extends "base.html" %}
{% load datehumanize %}
{% load prefix %}
{% block widgets %}
$.ajax({
url: '{% prefix %}/api/stats/user/{{username}}',
method: 'GET',
success: function (resp) {
var graph = $('#graph');
series = [{label: 'Meeting minutes for {{username}}',data: resp['data']}];
$.plot(graph,series,{
lines: { show: true },
points: { show: true },
xaxis: { mode: "time" }
});
$('#minutes').append(resp['minutes']);
$('#rooms').append(resp['rooms']);
}
});
{% endblock %}
{% block content %}
<h1>Meeting statistics for {{username}}</h1>
<div id="graph" style="width:600px;height:300px; display: block; float: left; margin-right: 20px;"></div>
<div>
<h2>Summary</h2>
<table>
<tr><td><b>Total minutes:</b></td><td id="minutes"></td></tr>
<tr><td><b>Total rooms:</b></td><td id="rooms"></td></tr>
<tr><td colspan="2" style="padding-top: 10px;"><a href="{% prefix %}/stats/domain/{{domain}}">Look at statistics for {{domain}}</a></td></tr>
</table>
</div>
{% endblock %}
|