summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/expenses/show.jinja2
-rw-r--r--templates/menu.jinja3
-rw-r--r--templates/stats/show.jinja17
3 files changed, 20 insertions, 2 deletions
diff --git a/templates/expenses/show.jinja b/templates/expenses/show.jinja
index 389d581..86f513d 100644
--- a/templates/expenses/show.jinja
+++ b/templates/expenses/show.jinja
@@ -5,7 +5,7 @@
{% block js %}
{{ super() }}
- <script type="text/javascript" src="{{ "js/highcharts-3.0.8.js" | static_url }}"></script>
+ <script type="text/javascript" src="{{ "js/highstock-1.3.9.js" | static_url }}"></script>
{% endblock %}
{% block heading %}
diff --git a/templates/menu.jinja b/templates/menu.jinja
index a4e2b49..0422612 100644
--- a/templates/menu.jinja
+++ b/templates/menu.jinja
@@ -2,7 +2,8 @@
("index", "Kosten"),
("expenses.add", "Neu"),
("consts.list", "Konstante Kosten"),
- ("categories.manage", "Kategorien")
+ ("categories.manage", "Kategorien"),
+ ("stats.show", "Statistiken")
]
%}
{% if current_user.is_authenticated() %}
diff --git a/templates/stats/show.jinja b/templates/stats/show.jinja
new file mode 100644
index 0000000..76d1ff3
--- /dev/null
+++ b/templates/stats/show.jinja
@@ -0,0 +1,17 @@
+{% extends "layout.jinja" %}
+
+{% set JSFunction = "statJS" %}
+
+{% block js %}
+ {{ super() }}
+ <script type="text/javascript" src="{{ "js/highstock-1.3.9.js" | static_url }}"></script>
+{% endblock %}
+
+{% block heading %}
+ Statistiken
+{% endblock %}
+
+{% block content %}
+ <h2>Konstante Kosten</h2>
+ <div class="stats" data-stats='{{ consts | tojson }}'></div>
+{% endblock content %}