Private
Public Access
1
0

playing with cookielaw banner

This commit is contained in:
Sander Roosendaal
2017-04-13 13:16:18 +02:00
parent fe46211dc7
commit e5bc04ab3e
4 changed files with 14 additions and 3 deletions

View File

@@ -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',

View File

@@ -0,0 +1,11 @@
{% load i18n %}
<div id="CookielawBanner">
<div class="container">
<h6>{% trans "COOKIE_INFO_HEADER" %}</h6>
<p>
<a class="btn btn-primary pull-right" href="javascript:Cookielaw.createCookielawCookie();">{% trans "COOKIE_INFO_OK" %}</a>
{% trans "COOKIE_INFO_PARA" %}
</p>
</div>
</div>

View File

@@ -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;

BIN
static/img/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B