Skip to content

Commit

Permalink
1.bugfix: layout, 2.logout redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
blackholll committed Apr 7, 2019
1 parent 6bfad34 commit 8ae2f29
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get(self, request, *args, **kwargs):
:return:
"""
logout(request)
return redirect('/manage')
return redirect('/manage/')


class LoonUserRoleView(View):
Expand Down
2 changes: 1 addition & 1 deletion templates/base_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<header class="main-header">

<!-- Logo -->
<a href="index2.html" class="logo">
<a href="/manage/" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>L</b>Flow</span>
<!-- logo for regular state and mobile devices -->
Expand Down
4 changes: 2 additions & 2 deletions templates/base_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

<!-- Optionally, you can add icons to the links -->
{% if active_nav == 'overview' %}
<li class="active"><a href="/manage"><i class="fa fa-dashboard"></i> <span>总览</span></a></li>
<li class="active"><a href="/manage/"><i class="fa fa-dashboard"></i> <span>总览</span></a></li>
{% else %}
<li><a href="/manage"><i class="fa fa-dashboard"></i> <span>总览</span></a></li>
<li><a href="/manage/"><i class="fa fa-dashboard"></i> <span>总览</span></a></li>
{% endif %}

{% if active_nav == 'doc' %}
Expand Down
1 change: 0 additions & 1 deletion templates/user_and_permission/token_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ <h4 class="modal-title">调用权限</h4>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/user_and_permission/user_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h4 class="modal-title" id="userRoleTitle">用户角色</h4>
</div>

</div>

</div>
<!-- /.content-wrapper -->

{% endblock %}
Expand Down

0 comments on commit 8ae2f29

Please sign in to comment.