From bc9465f40ac179efe6e398370fb9f9054413a292 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 21 Mar 2020 16:12:05 +0100 Subject: [PATCH] templates: add contact email in footer --- chloro/phyll/static/css/style.scss | 14 ++++++++++++-- chloro/phyll/templates/phyll/base.html | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/chloro/phyll/static/css/style.scss b/chloro/phyll/static/css/style.scss index bce2e84..5e2f05b 100644 --- a/chloro/phyll/static/css/style.scss +++ b/chloro/phyll/static/css/style.scss @@ -55,11 +55,14 @@ div.actions { } } -main { +main, footer { margin: 0 4em; padding: 1em; - background: #fafaff; max-width: 70em; +} + +main { + background: #fafaff; min-height: 70vh; clip-path: polygon(0px 0px, 96.35% -24px, 101.99% 7.86%, 100.61% 103.56%, 10% 100%, 0% 100%, 0px 0px); } @@ -171,3 +174,10 @@ main { } } } + +footer { + p { + text-align: right; + font-size: 100%; + } +} diff --git a/chloro/phyll/templates/phyll/base.html b/chloro/phyll/templates/phyll/base.html index de553ab..aa0f2cf 100644 --- a/chloro/phyll/templates/phyll/base.html +++ b/chloro/phyll/templates/phyll/base.html @@ -17,6 +17,9 @@ {% block body %} {% endblock %} + {% if request.user.is_staff %}
{% trans "New Note" %} -- 2.39.2