diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 5089f46e..3cc88707 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -14,8 +14,31 @@ div.container { margin: auto; } +.org-logged-in div.container { + margin-top: 20px; +} + div.login-bar { background: #6a0043; + color: #fffbf6; + width: 100%; + + position: fixed; + margin-top: -20px; + min-height: 20px; + z-index: 20; + + padding-left: 5px; + padding-right: 5px; +} + +div.login-bar div { + display: inline-block; +} + +a.login-ref-admin { + display: inline; + color: inherit; } /* odkazy a nadpisy */ @@ -123,6 +146,8 @@ h1 { margin-top: 0px; } + + /* Comments */ #id_comment { diff --git a/mamweb/templates/base.html b/mamweb/templates/base.html index a53fa3df..bfc14023 100644 --- a/mamweb/templates/base.html +++ b/mamweb/templates/base.html @@ -36,21 +36,21 @@ -
- - {% if user.is_staff %} -
- {% if view.object %} - Objekt {{ view.object }}: {{ view.object }} - {% if view.object.admin_url %}[admin]{% endif %} - {% endif %} - {% if flatpage %} - Stránka {{ flatpage.url }} ({{ flatpage.title }}) - [admin] - {% endif %} -
- {% endif %} + {% if user.is_staff %} +
+ {% if view.object %} + Objekt {{ view.object }}: {{ view.object }} + {% if view.object.admin_url %}{% endif %} + {% endif %} + {% if flatpage %} + + + {% endif %} + +
+ {% endif %} +