Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
17d5b288
Commit
17d5b288
authored
Sep 05, 2013
by
fred
Browse files
add logout link
parent
f6c0d8a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
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