From cc39dae1fbeec036401d740d8b20efb8fc641815 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 12 Nov 2021 19:34:49 +0300 Subject: [PATCH 1/2] button --- templates/account.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/account.html b/templates/account.html index bd65305..e65ed8b 100644 --- a/templates/account.html +++ b/templates/account.html @@ -24,6 +24,7 @@

{{ account.userinfo.surname }} {{ account.userinfo.name }} {{ account.userinfo.middle_name }} {{ account.userinfo.activity_status }} + Админ

From 8a155ad731cdf942333102131578f4368c1a4f15 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 12 Nov 2021 21:37:26 +0300 Subject: [PATCH 2/2] update_button --- templates/account.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/account.html b/templates/account.html index e65ed8b..3e7585e 100644 --- a/templates/account.html +++ b/templates/account.html @@ -24,7 +24,9 @@

{{ account.userinfo.surname }} {{ account.userinfo.name }} {{ account.userinfo.middle_name }} {{ account.userinfo.activity_status }} - Админ + {% if user.is_superuser %} + Админ + {% endif %}