Improved history page and spacing between values and currency suffix + minor improvements to css

This commit is contained in:
Julian Müller (ChaoticByte) 2023-04-15 10:01:56 +02:00
parent 8702233934
commit ac59aa0baa
6 changed files with 30 additions and 25 deletions

View file

@ -1,5 +1,5 @@
{% if global_message != "" %}
<div class="flex flex-center globalmessage">
<div class="flex flex-center globalmessage text-align-center">
<div>{{ global_message }}</div>
</div>
{% endif %}

View file

@ -11,13 +11,13 @@
{% if history %}
<table class="history">
<tr>
<th>{% translate "last 30 actions" %}</th>
<th></th>
<th colspan="3">{% translate "last 30 actions" %}</th>
</tr>
{% for h in history %}
<tr>
<td>{{ h.0 }}</td>
<td class="historydate">{{ h.1 }}</td>
<td class="text-align-right">{{ h.0 }} {{ currency_suffix }}</td>
<td>{{ h.1 }}</td>
<td>{{ h.2 }}</td>
</tr>
{% endfor %}
</table>

View file

@ -2,14 +2,14 @@
{% load static %}
<div class="flex flex-center userpanel">
<div class="userinfo">
<div class="userinfo text-align-center">
<img src="/profilepictures/{{ user.profile_picture_filename|urlencode }}"><span>{% if user.first_name != "" %}
{{ user.first_name }} {{ user.last_name }} ({{ user.username }}){% else %}{{ user.username }}{% endif %}
&nbsp;-&nbsp;
{% if user.balance < 0.01 %}
<span class="userbalancewarn">{% translate "Balance" %}: {{ user.balance }}{{ currency_suffix }}</span>
<span class="userbalancewarn">{% translate "Balance" %}: {{ user.balance }} {{ currency_suffix }}</span>
{% else %}
<span>{% translate "Balance" %}: {{ user.balance }}{{ currency_suffix }}</span>
<span>{% translate "Balance" %}: {{ user.balance }} {{ currency_suffix }}</span>
{% endif %}
</span>
</div>