Added notice when there's no account logs to display.

This commit is contained in:
flash 2023-07-28 20:36:16 +00:00
parent 8c52fc81e2
commit c5ec94289d
2 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,10 @@
.settings__account-logs__pagination {
margin: 4px;
}
.settings__account-logs__none {
padding: 2px 5px;
text-align: center;
}
.settings__account-log {
border: 1px solid var(--accent-colour);

View file

@ -51,9 +51,15 @@
{{ alpagination }}
</div>
{% for log in account_log_list %}
{{ user_account_log(log) }}
{% endfor %}
{% if account_log_list|length < 1 %}
<div class="settings__account-logs__none">
There are no logs to display.
</div>
{% else %}
{% for log in account_log_list %}
{{ user_account_log(log) }}
{% endfor %}
{% endif %}
<div class="settings__account-logs__pagination">
{{ alpagination }}