--- a/src/hdalab/templates/base.html Wed May 27 14:06:37 2015 +0200
+++ b/src/hdalab/templates/base.html Fri Jun 19 18:25:35 2015 +0200
@@ -16,11 +16,15 @@
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/common.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/header.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/footer.css' %}" />
+ <link rel="stylesheet" type="text/css" href="{% static 'hdalab/lib/jquery.cookiecuttr/cookiecuttr.css' %}" />
{% endblock %}
{% block js_import %}
<script src="{% static 'hdalab/lib/jquery.min.js' %}"></script>
+ <script src="{% static 'hdalab/lib/jquery.cookie.js' %}"></script>
+ <script src="{% static 'hdalab/lib/jquery.cookiecuttr/jquery.cookiecuttr.js' %}"></script>
{% endblock %}
+
</head>
<body>
{% block header %}
@@ -110,6 +114,21 @@
</div>
</footer>
{% endblock %}
+ <script>
+ $(function() {
+ $.cookieCuttr({
+ cookieCutter: true,
+ cookieAnalytics: false,
+ cookieAcceptButton: true, // this will disable non essential cookies
+ cookieResetButton: false,
+ cookiePolicyLink: '{% url 'a_propos' %}', // if applicable, enter the link to your privacy policy here...
+ cookieMessage: '{% trans 'We use cookies on this website, you can <a href="{{cookiePolicyLink}}" title="read about our cookies">read about them here</a>. To use the website as intended please...'%}',
+ cookieAcceptButtonText: "{% trans 'ACCEPT COOKIES' %}",
+ cookieDeclineButtonText: "{% trans 'DECLINE COOKIES' %}",
+ cookieNotificationLocationBottom: false, // top or bottom - they are your only options, so true for bottom, false for top
+ });
+ });
+ </script>
{% analytics %}
</body>
</html>