Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f712819a
authored
Dec 10, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add logout link+view
parent
c74c6714
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
circle/circle/urls.py
+2
-1
circle/dashboard/templates/dashboard/base.html
+4
-0
No files found.
circle/circle/urls.py
View file @
f712819a
...
...
@@ -2,7 +2,7 @@ from django.conf.urls import patterns, include, url
# from django.views.generic import TemplateView
from
django.contrib
import
admin
from
django.contrib.auth.views
import
login
from
django.contrib.auth.views
import
login
,
logout
admin
.
autodiscover
()
...
...
@@ -20,5 +20,6 @@ urlpatterns = patterns(
url
(
r'^network/'
,
include
(
'network.urls'
)),
url
(
r'^dashboard/'
,
include
(
'dashboard.urls'
)),
url
(
r'^login/'
,
login
),
url
(
r'^logout/'
,
logout
),
url
(
r'^vm-api/'
,
include
(
'vm.urls'
)),
)
circle/dashboard/templates/dashboard/base.html
View file @
f712819a
...
...
@@ -27,7 +27,11 @@
<!-- temporarily -->
<a
class=
"navbar-brand pull-right"
href=
"/network/"
style=
"color: white; font-size: 10px;"
>
Network
</a>
<a
class=
"navbar-brand pull-right"
href=
"/admin/"
style=
"color: white; font-size: 10px;"
>
Admin
</a>
{% if user.is_authenticated %}
<a
class=
"navbar-brand pull-right"
href=
"/logout/?next=/login/"
style=
"color: white; font-size: 10px;"
>
Log out {{user}}
</a>
{% else %}
<a
class=
"navbar-brand pull-right"
href=
"/login/?next={% url "
dashboard
.
index
"
%}"
style=
"color: white; font-size: 10px;"
>
Login
</a>
{% endif %}
</div>
<div
class=
"container"
>
...
...
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