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

@ -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>