diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 26baccbd..5a879a37 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -1200,3 +1200,13 @@ label[for=id_skola] { .testweb .login-bar { margin-left: -20px; } + +/* Produkční web z pohledu superuživatele */ +.suprodweb { + border-left: 20px solid red; + border-right: 20px solid red; +} + +.suprodweb .login-bar { + margin-left: -20px; +} diff --git a/various/context_processors.py b/various/context_processors.py index b9fbd1c3..a1e4478a 100644 --- a/various/context_processors.py +++ b/various/context_processors.py @@ -17,5 +17,8 @@ def april(req): def rozliseni(request): - return {"LOCAL_TEST_PROD": settings.LOCAL_TEST_PROD} + ltp = settings.LOCAL_TEST_PROD + if request.user.is_superuser and ltp == "prod": + ltp = "su" + ltp + return {"LOCAL_TEST_PROD": ltp}