diff options
Diffstat (limited to 'ihatemoney/templates/statistics.html')
| -rw-r--r-- | ihatemoney/templates/statistics.html | 13 |
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 %} |
