From e5bc04ab3e2c31fe6f1d04c3470cdd6ac3f00d8b Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 13 Apr 2017 13:16:18 +0200 Subject: [PATCH] playing with cookielaw banner --- rowsandall_app/settings.py | 4 ++-- static/cookielaw/banner.html | 11 +++++++++++ static/cookielaw/css/cookielaw.css | 2 +- static/img/close.png | Bin 0 -> 190 bytes 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 static/cookielaw/banner.html create mode 100644 static/img/close.png diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index c2a90e49..c62a27bb 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -29,7 +29,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'z_@2yia858=2i1cygo4ne3+14&i_&@wlty68$q1igdvn=9k5mo' +SECRET_KEY = CFG['secret_key'] + # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False @@ -104,7 +105,6 @@ TEMPLATES = [ 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', - 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', diff --git a/static/cookielaw/banner.html b/static/cookielaw/banner.html new file mode 100644 index 00000000..e9695a3f --- /dev/null +++ b/static/cookielaw/banner.html @@ -0,0 +1,11 @@ +{% load i18n %} + +
+
+
{% trans "COOKIE_INFO_HEADER" %}
+

+ {% trans "COOKIE_INFO_OK" %} + {% trans "COOKIE_INFO_PARA" %} +

+
+
diff --git a/static/cookielaw/css/cookielaw.css b/static/cookielaw/css/cookielaw.css index 5e76378e..0795ae89 100644 --- a/static/cookielaw/css/cookielaw.css +++ b/static/cookielaw/css/cookielaw.css @@ -8,7 +8,7 @@ } #CookielawBanner #CookielawCross { - background: url('../img/close.png') no-repeat 0 0; + background: url('/static/img/close.png') no-repeat 0 0; cursor: pointer; display: block; position: absolute; diff --git a/static/img/close.png b/static/img/close.png new file mode 100644 index 0000000000000000000000000000000000000000..839576e6cc0e571974b6a5e2fc0cc42727e41ea3 GIT binary patch literal 190 zcmeAS@N?(olHy`uVBq!ia0vp^{2`|NoyCDSmp=BdNp`^3W-wBtI~=NvQXTUGx&Q?z6gV?UMhl6nAXxf5ykNT7}*#m8Z%nF*LZgpXeNWFtDnm{r-UW|5Bx)h literal 0 HcmV?d00001