Fix contrast issues with table icons

This commit is contained in:
Edgar P. Burkhart 2024-01-02 17:03:55 +01:00
parent 65d97f523c
commit e44e3a51f0
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
2 changed files with 4 additions and 4 deletions

View File

@ -30,9 +30,9 @@ def empty_calendar_cells_end(n):
@register.simple_tag
def up_down_icon(val):
if val > 0:
return remix("arrow-up-s", "green")
return remix("arrow-up-s")
elif val < 0:
return remix("arrow-down-s", "red")
return remix("arrow-down-s")
@register.simple_tag

View File

@ -33,9 +33,9 @@
{% for snap in statements %}
<tr>
{% if snap.sum == snap.diff %}
<td class="c green">{{ "check"|remix }}</td>
<td class="c">{{ "check"|remix }}</td>
{% else %}
<td class="c red">{{ "close"|remix }}</td>
<td class="c">{{ "close"|remix }}</td>
{% endif %}
<td class="c">
{% if snap.file %}<a href="{{ snap.file.url }}">{{ "attachment"|remix }}</a>{% endif %}