Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikdb
Commits
17d5b288
Commit
17d5b288
authored
Sep 05, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add logout link
parent
f6c0d8a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
panikdb/templates/base.html
panikdb/templates/base.html
+5
-0
panikdb/templates/registration/login.html
panikdb/templates/registration/login.html
+2
-0
panikdb/urls.py
panikdb/urls.py
+1
-0
No files found.
panikdb/templates/base.html
View file @
17d5b288
...
...
@@ -37,6 +37,11 @@
<h1><a
href=
"{% url 'home' %}"
>
Panik DB
</a></h1>
</div>
<div
id=
"splash"
>
<div
id=
"user-links"
>
{% block user-links %}
<a
href=
"{% url 'logout' %}"
>
Déconnexion
</a>
{% endblock %}
</div>
</div>
{% endif %}
<div
id=
"content"
>
...
...
panikdb/templates/registration/login.html
View file @
17d5b288
{% extends "base.html" %}
{% load url from future %}
{% block user-links %}{% endblock %}
{% block content %}
<h2>
Connexion
</h2>
...
...
panikdb/urls.py
View file @
17d5b288
...
...
@@ -29,6 +29,7 @@ urlpatterns = patterns('',
url
(
r
'^emissions/'
,
decorated_includes
(
login_required
,
include
(
emissions_urlpatterns
))),
url
(
r
'^accounts/logout/'
,
'django.contrib.auth.views.logout_then_login'
,
name
=
'logout'
),
url
(
r
'^accounts/'
,
include
(
'registration.backends.default.urls'
)),
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
...
...
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