summaryrefslogtreecommitdiff
path: root/kosten/templates/stats
diff options
context:
space:
mode:
Diffstat (limited to 'kosten/templates/stats')
-rw-r--r--kosten/templates/stats/const_dialog.jinja8
-rw-r--r--kosten/templates/stats/show.jinja12
2 files changed, 20 insertions, 0 deletions
diff --git a/kosten/templates/stats/const_dialog.jinja b/kosten/templates/stats/const_dialog.jinja
new file mode 100644
index 0000000..9f059b8
--- /dev/null
+++ b/kosten/templates/stats/const_dialog.jinja
@@ -0,0 +1,8 @@
+
+<ul class="arrow">
+ {% for c in consts -%}
+ <li><a href="{{ url_for("consts.show", id = c.id) }}">{{c.description}}</a>
+ ({{c.monthly | eur}})
+ </li>
+ {% endfor %}
+</ul>
diff --git a/kosten/templates/stats/show.jinja b/kosten/templates/stats/show.jinja
new file mode 100644
index 0000000..ac271ac
--- /dev/null
+++ b/kosten/templates/stats/show.jinja
@@ -0,0 +1,12 @@
+{% extends "layout.jinja" %}
+
+{% set JSFunction = "statJS" %}
+{% set additionalJS = ["highstock"] %}
+
+{% block heading %}
+ Statistiken
+{% endblock %}
+
+{% block content %}
+ <div class="stats" data-consts='{{ consts | tojson }}' data-expenses='{{ expenses | tojson }}'></div>
+{% endblock content %}