summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/apps/stats/domain.html32
-rw-r--r--src/templates/apps/stats/user.html32
-rw-r--r--src/templates/base.html2
3 files changed, 66 insertions, 0 deletions
diff --git a/src/templates/apps/stats/domain.html b/src/templates/apps/stats/domain.html
new file mode 100644
index 0000000..94e500d
--- /dev/null
+++ b/src/templates/apps/stats/domain.html
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+{% load datehumanize %}
+{% load prefix %}
+{% block widgets %}
+$.ajax({
+ url: '{% prefix %}/api/stats/domain/{{domain}}',
+ method: 'GET',
+ success: function (resp) {
+ var graph = $('#graph');
+ series = [{label: 'Meeting minutes for {{domain}}',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 {{domain}}</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 rooms:</b></td><td id="rooms"></td></tr>
+</table>
+<a href="/stats">Look at your own statistics</a>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/src/templates/apps/stats/user.html b/src/templates/apps/stats/user.html
new file mode 100644
index 0000000..4faacfd
--- /dev/null
+++ b/src/templates/apps/stats/user.html
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+{% load datehumanize %}
+{% load prefix %}
+{% block widgets %}
+$.ajax({
+ url: '{% prefix %}/api/stats/user/{{user.username}}',
+ method: 'GET',
+ success: function (resp) {
+ var graph = $('#graph');
+ series = [{label: 'Meeting minutes for {{user}}',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 {{user}}</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>
+</table>
+<a href="/stats/{{domain}}">Look at statistics for {{domain}}</a>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/src/templates/base.html b/src/templates/base.html
index 66a70ed..1541252 100644
--- a/src/templates/base.html
+++ b/src/templates/base.html
@@ -16,6 +16,8 @@
<script type="text/javascript" src="{% prefix %}/site-media/js/bbq.js"></script>
<script type="text/javascript" src="{% prefix %}/site-media/js/jquery.form.wizard-3.0.4.js"></script>
<script type="text/javascript" src="{% prefix %}/site-media/js/jquery.meetingtools.js"></script>
+ <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% prefix %}/site-media/js/excanvas.min.js"></script><![endif]-->
+ <script type="text/javascript" src="{% prefix %}/site-media/js/jquery.flot.min.js"></script>
<!--[if IE]>
<link href="css/sunet-ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->