{% extends "base.html" %} {% load datehumanize %} {% block widgets %} $.ajax({ url: '/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']); } }); $("#graph").ajaxStart(function() { this.spin("large") }).ajaxStop(function() { this.spin(false) }); {% endblock %} {% block content %}
Total minutes: | |
Total rooms: | |
Look at statistics for {{domain}} |