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
a5312e24
Commit
a5312e24
authored
Nov 04, 2017
by
LEVY-FALK Hugo
Committed by
root
Nov 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #13
parent
0ed60c64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
templates/base.html
templates/base.html
+1
-0
templates/cookie_banner.html
templates/cookie_banner.html
+19
-0
No files found.
templates/base.html
View file @
a5312e24
...
...
@@ -49,6 +49,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</head>
<body>
{% include "cookie_banner.html" %}
<div
id=
"wrap"
>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
...
...
templates/cookie_banner.html
0 → 100644
View file @
a5312e24
{% 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