diff --git a/static/js/index.js b/static/js/index.js index 3a557313..0fbc362e 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -256,17 +256,27 @@ new Vue({ el: '#filter-app', delimiters: ["[[", "]]"], // necessary to avoid conflict with jinja data: { - showFilter: false + showFilter: false, + showStats: false }, methods: { async toggleFilter() { let that = this; that.showFilter = !that.showFilter; store.set('showFilter', that.showFilter); + }, + + async toggleStats() { + let that = this; + that.showStats = !that.showStats; + store.set('showStats', that.showStats); } }, async mounted() { if (store.get("showFilter")) this.showFilter = true; + + if (store.get("showStats")) + this.showStats = true; } }); diff --git a/templates/dashboard/index.html b/templates/dashboard/index.html index a3e24dff..82f7ad6b 100644 --- a/templates/dashboard/index.html +++ b/templates/dashboard/index.html @@ -31,63 +31,11 @@ {% block title %}Alias{% endblock %} {% block default_content %} - -
-
-
-
-
-
Aliases
-
All time
-
-
{{ stats.nb_alias }}
-
-
-
-
-
-
-
-
Forwarded
-
Last 14 days
-
-
{{ stats.nb_forward }}
-
-
-
-
-
-
-
-
Replies/Sent
-
Last 14 days
-
-
{{ stats.nb_reply }}
-
-
-
-
-
-
-
-
Blocked
-
Last 14 days
-
-
{{ stats.nb_block }}
-
-
-
-
-
-
-
+
+
{{ csrf_form.csrf_token }} @@ -141,17 +89,86 @@
-
+
+ +
+
+
+
+
+
Aliases
+
All time
+
+
{{ stats.nb_alias }}
+
+
+
+
+
+
+
+
Forwarded
+
Last 14 days
+
+
{{ stats.nb_forward }}
+
+
+
+
+
+
+
+
Replies/Sent
+
Last 14 days
+
+
{{ stats.nb_reply }}
+
+
+
+
+
+
+
+
Blocked
+
Last 14 days
+
+
{{ stats.nb_block }}
+
+
+
+
+
@@ -223,11 +240,6 @@ Reset {% endif %} - - -