Add trend to history chart
This commit is contained in:
parent
9db123457f
commit
5534a4352d
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
<div class="plot">
|
<div class="plot">
|
||||||
<table class="full-width">
|
<table class="full-width">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
<col class="icon">
|
||||||
<col class="desc">
|
<col class="desc">
|
||||||
<col class="value">
|
<col class="value">
|
||||||
<col span="2" class="bar">
|
<col span="2" class="bar">
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th scope="col">{{ "expand-up-down"|remix }}</th>
|
||||||
<th scope="col">{% translate "Month" %}</th>
|
<th scope="col">{% translate "Month" %}</th>
|
||||||
<th scope="col" colspan="2">{% translate "Expenses" %}</th>
|
<th scope="col" colspan="2">{% translate "Expenses" %}</th>
|
||||||
<th scope="col" colspan="2">{% translate "Income" %}</th>
|
<th scope="col" colspan="2">{% translate "Income" %}</th>
|
||||||
|
@ -19,6 +21,9 @@
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
{% for date in history.data %}
|
{% for date in history.data %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="icon">
|
||||||
|
<span class="ri-{% if date.sum > 0 %}arrow-up-s-line green{% elif date.sum < 0 %}arrow-down-s-line red{% else %}equal-line{% endif %}"></span>
|
||||||
|
</td>
|
||||||
<th class="date" scope="row">{{ date.month|date:"Y-m" }}</th>
|
<th class="date" scope="row">{{ date.month|date:"Y-m" }}</th>
|
||||||
<td class="value">{{ date.sum_m|pmrvalue }}</td>
|
<td class="value">{{ date.sum_m|pmrvalue }}</td>
|
||||||
<td class="bar m">
|
<td class="bar m">
|
||||||
|
|
Loading…
Reference in a new issue