summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-31 00:11:52 +0100
committerLeif Johansson <leifj@sunet.se>2012-10-31 00:11:52 +0100
commitea0442b4797fdc34414d1b0c3153298e214766f6 (patch)
treef2b36f2a58c69a50308c67af345dd7d2f6401083 /templates
parent0d218d69284497581c869ecc1606cfd173e87745 (diff)
stats in DB
Diffstat (limited to 'templates')
-rw-r--r--templates/apps/stats/domain.html2
-rw-r--r--templates/apps/stats/room.html2
-rw-r--r--templates/apps/stats/user.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/apps/stats/domain.html b/templates/apps/stats/domain.html
index bf4fb34..bff2e1c 100644
--- a/templates/apps/stats/domain.html
+++ b/templates/apps/stats/domain.html
@@ -2,7 +2,7 @@
{% load datehumanize %}
{% block widgets %}
$.ajax({
- url: '/api/stats/domain/{{domain}}',
+ url: '/api/stats/?tags=domain:{{domain}}',
method: 'GET',
beforeSend: function() { $('#graph').spin("flotload"); },
success: function (resp) {
diff --git a/templates/apps/stats/room.html b/templates/apps/stats/room.html
index fdc8bc9..2eb7733 100644
--- a/templates/apps/stats/room.html
+++ b/templates/apps/stats/room.html
@@ -2,7 +2,7 @@
{% load datehumanize %}
{% block widgets %}
$.ajax({
- url: '/api/stats/room/{{room.id}}',
+ url: '/api/stats/?sco={{room.sco.id}}',
method: 'GET',
beforeSend: function() { $('#graph').spin("flotload"); },
success: function (resp) {
diff --git a/templates/apps/stats/user.html b/templates/apps/stats/user.html
index 8568697..566317c 100644
--- a/templates/apps/stats/user.html
+++ b/templates/apps/stats/user.html
@@ -2,7 +2,7 @@
{% load datehumanize %}
{% block widgets %}
$.ajax({
- url: '/api/stats/user/{{username}}',
+ url: '/api/stats/?user={{request.user.id}}',
method: 'GET',
beforeSend: function() { $('#graph').spin("flotload"); },
success: function (resp) {