diff options
Diffstat (limited to 'templates/expenses')
-rw-r--r-- | templates/expenses/show.jinja | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/expenses/show.jinja b/templates/expenses/show.jinja index 8052757..4b6e362 100644 --- a/templates/expenses/show.jinja +++ b/templates/expenses/show.jinja @@ -12,7 +12,7 @@ {% endblock %} {% block content %} - {% for e in exps %} + {% for e, p in zip(exps,pies) %} {% if exps | length > 1 %}<h2>{{e|date}}</h2>{% endif %} <div style="margin-bottom: 10px"> <div style="display:inline-block; width:270px; vertical-align: top"> @@ -30,8 +30,7 @@ <a href="{{ url_for(".edit", id = exp.id) }}">{{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur}}</a> {% endcall %} </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 style="display:inline-block; height:250px; margin-left:50px" data-pie='{{ p | tojson }}'> </div> </div> {% endfor %} |