diff --git a/static/css/style.css b/static/css/style.css index 20cc692..5c175ca 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -61,6 +61,18 @@ header * { color: var(--brand-text); } +header > nav { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + align-items: center; +} + +header > nav > a { + margin: 0.5em; +} + .value-good { color: var(--text-good); } diff --git a/templates/account/list.html b/templates/account/list.html index f181536..b87aac0 100644 --- a/templates/account/list.html +++ b/templates/account/list.html @@ -42,7 +42,7 @@ {% for u in users %}
Уровень доступа: {{ view_user.access_level }}
+Уровень доступа: {{ view_user.readable_access_level }}
Последний вход: {{ view_user.last_login }}
Последнее обновление пароля: {{ view_user.last_password_change }} {% if perms.users.change_user or view_user.login == user.login %} @@ -25,9 +21,8 @@
Зарегистрирован: {{ view_user.registered }}
-{% if perms.users.delete_user %} +{% if perms.users.delete_user and view_user.login != user.login %} {% endif %} - {% endblock %} diff --git a/templates/base.html b/templates/base.html index da22d4e..77cd694 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,11 +14,11 @@ {% block header %}