Compare commits
2 commits
c77b88c2f7
...
e3ddf4cbaa
Author | SHA1 | Date | |
---|---|---|---|
e3ddf4cbaa | |||
a1d48ca246 |
3 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ table.file-input tr :last-child {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
form tfoot {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.buttons input {
|
.buttons input {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{% for date in history.data %}
|
{% for date in history.data %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="icon">
|
<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>
|
<span class="ri-{% if date.sum > 0 %}arrow-up-s-line green{% elif date.sum < 0 %}arrow-down-s-line red{% endif %}"></span>
|
||||||
</td>
|
</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>
|
||||||
|
|
|
@ -8,7 +8,7 @@ register = template.Library()
|
||||||
@register.filter
|
@register.filter
|
||||||
def value(val, pm=False, r=2):
|
def value(val, pm=False, r=2):
|
||||||
if not val:
|
if not val:
|
||||||
return mark_safe("–")
|
return ""
|
||||||
_prefix = ""
|
_prefix = ""
|
||||||
_suffix = " €"
|
_suffix = " €"
|
||||||
_val = formats.number_format(round(val, r), r, use_l10n=True, force_grouping=True)
|
_val = formats.number_format(round(val, r), r, use_l10n=True, force_grouping=True)
|
||||||
|
|
Loading…
Reference in a new issue