From b0881d7bc61151a91041dc3011cebb7a1f685733 Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Sat, 27 Jul 2019 14:17:21 +0200 Subject: [PATCH] Added language switch links --- arrowcounter/settings.py | 2 +- counter/static/css/main.css | 12 ++++++++++++ counter/templates/base.html | 25 +++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/arrowcounter/settings.py b/arrowcounter/settings.py index 53ee282..78b44a7 100644 --- a/arrowcounter/settings.py +++ b/arrowcounter/settings.py @@ -127,7 +127,7 @@ SITE_ROOT = os.path.dirname(os.path.realpath(__name__)) LOCALE_PATHS = ( os.path.join(SITE_ROOT, 'locale'), ) LANGUAGES = ( - ('it', 'Italiano'), + ('it', 'Italian'), ('en', 'English') ) diff --git a/counter/static/css/main.css b/counter/static/css/main.css index 578dddf..1634ef0 100644 --- a/counter/static/css/main.css +++ b/counter/static/css/main.css @@ -1,3 +1,15 @@ +/* vim: set ts=2 sw=2 et tw=80: */ + +body { + display: flex; + min-height: 100vh; + flex-direction: column; +} + +main { + flex: 1 0 auto; +} + #main-menu { border-radius: 0; } diff --git a/counter/templates/base.html b/counter/templates/base.html index 67fd3c1..87aaf0a 100644 --- a/counter/templates/base.html +++ b/counter/templates/base.html @@ -58,4 +58,29 @@ {% block scripts %}{% endblock %} + +