diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2014-01-17 00:36:10 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2014-01-17 00:36:10 +0100 |
commit | 7dc8868361e0f174e211c9a3d158082df5c21a3c (patch) | |
tree | dd3fe351f8c953fe4756a6774bed32fe7467e0de /templates | |
parent | f7d4c3c2c8bbcad07c41498e71c5a311f01e0f4b (diff) | |
download | kosten-7dc8868361e0f174e211c9a3d158082df5c21a3c.tar.gz kosten-7dc8868361e0f174e211c9a3d158082df5c21a3c.tar.bz2 kosten-7dc8868361e0f174e211c9a3d158082df5c21a3c.zip |
First statistics :)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/expenses/show.jinja | 2 | ||||
-rw-r--r-- | templates/menu.jinja | 3 | ||||
-rw-r--r-- | templates/stats/show.jinja | 17 |
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 %} |