Improved history page and spacing between values and currency suffix + minor improvements to css
This commit is contained in:
parent
8702233934
commit
ac59aa0baa
6 changed files with 30 additions and 25 deletions
|
@ -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 %}
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
-
|
||||
{% 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue