aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/statistics.html
diff options
context:
space:
mode:
authorEdwin Smulders <edwin.smulders@gmail.com>2020-02-09 13:03:52 +0100
committerGitHub <noreply@github.com>2020-02-09 13:03:52 +0100
commit02242f2e12e98ebad7e3c401cfa3b31d7bb651cc (patch)
tree122e8b1a43f092adcf9c734238089c8fe1f001dc /ihatemoney/templates/statistics.html
parentbf691660ee52073cfca5b32ed833553e9fe3a171 (diff)
downloadihatemoney-mirror-02242f2e12e98ebad7e3c401cfa3b31d7bb651cc.zip
ihatemoney-mirror-02242f2e12e98ebad7e3c401cfa3b31d7bb651cc.tar.gz
ihatemoney-mirror-02242f2e12e98ebad7e3c401cfa3b31d7bb651cc.tar.bz2
Initial montly expenses (#526)
Diffstat (limited to 'ihatemoney/templates/statistics.html')
-rw-r--r--ihatemoney/templates/statistics.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/ihatemoney/templates/statistics.html b/ihatemoney/templates/statistics.html
index 0cfe1f2..539781f 100644
--- a/ihatemoney/templates/statistics.html
+++ b/ihatemoney/templates/statistics.html
@@ -21,6 +21,7 @@
{% block content %}
+ <h2>{{ _("Balance") }}</h2>
<table id="bill_table" class="split_bills table table-striped">
<thead><tr><th>{{ _("Who?") }}</th><th>{{ _("Paid") }}</th><th>{{ _("Spent") }}</th></tr></thead>
<tbody>
@@ -33,5 +34,17 @@
{% endfor %}
</tbody>
</table>
+ <h2>{{ _("Expenses by Month") }}</h2>
+ <table id="monthly_stats" class="table table-striped">
+ <thead><tr><th>{{ _("Period") }}</th><th>{{ _("Spent") }}</th></tr></thead>
+ <tbody>
+ {% for month in months %}
+ <tr>
+ <td>{{ _(month.strftime("%B")) }} {{ month.year }}</td>
+ <td>{{ "%0.2f"|format(monthly_stats[month.year][month.month]) }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
{% endblock %}