Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
3a3960bf
Commit
3a3960bf
authored
Mar 06, 2018
by
klafyvel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'remove_cookie_banner' into 'master'
Remove cookie banner Closes #75 See merge request federez/re2o!92
parents
d7be9e90
0e60e974
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
templates/base.html
templates/base.html
+0
-1
templates/cookie_banner.html
templates/cookie_banner.html
+0
-19
No files found.
templates/base.html
View file @
3a3960bf
...
@@ -56,7 +56,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
...
@@ -56,7 +56,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<body>
<body>
<div
id=
"wrap"
>
<div
id=
"wrap"
>
{% include "cookie_banner.html" %}
<nav
class=
"navbar navbar-inverse"
>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
...
...
templates/cookie_banner.html
deleted
100644 → 0
View file @
d7be9e90
{% if not 'accept_cookies' in request.COOKIES%}
<script>
function
accept_cookie
()
{
var
d
=
new
Date
();
var
expiration_time
=
7
*
24
*
60
*
60
*
1000
;
// Accepte les cookies pendant 7 jours.
d
.
setTime
(
d
.
getTime
()
+
expiration_time
);
var
expires
=
"
expires=
"
+
d
.
toUTCString
();
document
.
cookie
=
"
accept_cookies=1;
"
+
expires
+
"
;path=/
"
;
var
banner
=
document
.
getElementById
(
"
cookie_banner
"
);
banner
.
parentNode
.
removeChild
(
banner
);
}
</script>
<div
class=
"navbar text-center"
id=
"cookie_banner"
>
<p>
Ce site utilise des cookies. En poursuivant sur ce site j'accepte l'utilisation des cookies sur ce site.
</p>
<a
class=
"btn btn-primary btn-sm"
role=
"button"
onclick=
"accept_cookie();"
title=
"Accepter"
>
J'ai compris !
</a>
</div>
{% endif %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment