summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-09-10 02:03:23 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-09-10 02:03:23 +0200
commit698548529a570b3cab576ae33b5b514d2db7ddb0 (patch)
treebea4ab53bdfb454de7e45479310e4c08eb6328e0 /templates
parent56d6fb1d7adac0250dedd0aaa340161ea766129e (diff)
downloadkosten-698548529a570b3cab576ae33b5b514d2db7ddb0.tar.gz
kosten-698548529a570b3cab576ae33b5b514d2db7ddb0.tar.bz2
kosten-698548529a570b3cab576ae33b5b514d2db7ddb0.zip
First pygal/chart stuff
Diffstat (limited to '')
-rw-r--r--templates/expenses/show.jinja8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/expenses/show.jinja b/templates/expenses/show.jinja
index 2643ac4..a3b9422 100644
--- a/templates/expenses/show.jinja
+++ b/templates/expenses/show.jinja
@@ -17,6 +17,8 @@
{% block content %}
{% for e in exps %}
{% if exps | length > 1 %}<h2>{{e|date}}</h2>{% endif %}
+ <div style="margin-bottom: 10px">
+ <div style="display:inline-block; width:270px; vertical-align: top">
{% for c in e.catexps | sort(attribute="cat.name") %}
{% call(exp) detail(name=c.cat.name, sum=c.expense, set=c.all) %}
<a href="{{ url_for(".edit", id = exp.id) }}">{{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur }}</a>
@@ -30,7 +32,11 @@
{% call(exp) detail(name="In Summa", sum=e.sum, set=e.all, color="#ff2d2d") %}
<a href="{{ url_for(".edit", id = exp.id) }}">{{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur}}</a>
{% endcall %}
- <br>
+ </div>
+ <div style="display:inline-block; height:250px; margin-left:50px">
+ <object type="image/svg+xml" height="100%" data="{{ url_for("svg.month", month = e.date.month, year = e.date.year) }}"></object>
+ </div>
+ </div>
{% endfor %}
{# Note: exps are given _reversed_, i.e. "exps | last" is