summaryrefslogtreecommitdiff
path: root/templates/expenses/show.jinja
diff options
context:
space:
mode:
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