summaryrefslogtreecommitdiff
path: root/templates/apps/stats
diff options
context:
space:
mode:
Diffstat (limited to 'templates/apps/stats')
-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) {