Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
d051a1db
Commit
d051a1db
authored
Jul 15, 2016
by
janeczku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix login/logout redirect with reverse proxy
parent
f95ac38c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
layout.html
cps/templates/layout.html
+2
-2
No files found.
cps/templates/layout.html
View file @
d051a1db
...
@@ -79,9 +79,9 @@
...
@@ -79,9 +79,9 @@
<li><a
href=
"{{url_for('user_list')}}"
><span
class=
"glyphicon glyphicon-dashboard"
></span>
Admin
</a></li>
<li><a
href=
"{{url_for('user_list')}}"
><span
class=
"glyphicon glyphicon-dashboard"
></span>
Admin
</a></li>
{% endif %}
{% endif %}
<li><a
href=
"{{url_for('profile')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
{{g.user.nickname}}
</a></li>
<li><a
href=
"{{url_for('profile')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
{{g.user.nickname}}
</a></li>
<li><a
href=
"{{url_for('logout', next=
request.path
)}}"
><span
class=
"glyphicon glyphicon-log-out"
></span>
Logout
</a></li>
<li><a
href=
"{{url_for('logout', next=
'%s%s' % (request.script_root, request.path)
)}}"
><span
class=
"glyphicon glyphicon-log-out"
></span>
Logout
</a></li>
{% else %}
{% else %}
<li><a
href=
"{{url_for('login', next=
request.path
)}}"
><span
class=
"glyphicon glyphicon-log-in"
></span>
Login
</a></li>
<li><a
href=
"{{url_for('login', next=
'%s%s' % (request.script_root, request.path)
)}}"
><span
class=
"glyphicon glyphicon-log-in"
></span>
Login
</a></li>
{% if g.allow_registration %}
{% if g.allow_registration %}
<li><a
href=
"{{url_for('register')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
Register
</a></li>
<li><a
href=
"{{url_for('register')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
Register
</a></li>
{% endif %}
{% 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