2016-08-09 06:42:21 +00:00
|
|
|
{% load static %}
|
2016-09-03 16:51:36 +00:00
|
|
|
{% load i18n %}
|
2016-08-09 06:42:21 +00:00
|
|
|
<li class="nav-header">
|
|
|
|
<div class="dropdown profile-element">
|
2018-01-22 15:47:41 +00:00
|
|
|
<div href="http://www.jumpserver.org" target="_blank">
|
|
|
|
<img alt="image" height="55" src="/static/img/logo-text.png" style="margin-left: 10px"/>
|
2018-01-02 09:07:00 +00:00
|
|
|
</div>
|
2016-08-09 06:42:21 +00:00
|
|
|
</div>
|
2018-01-02 09:07:00 +00:00
|
|
|
<div class="clearfix"></div>
|
2016-08-09 06:42:21 +00:00
|
|
|
<div class="logo-element">
|
2018-01-02 09:31:20 +00:00
|
|
|
<img alt="image" height="40" src="/static/img/logo.png"/>
|
2016-08-09 06:42:21 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
2017-12-21 03:31:13 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
})
|
|
|
|
.on('click', '#switch_admin', function () {
|
2018-01-02 09:02:03 +00:00
|
|
|
var cookieName = "IN_ADMIN_PAGE";
|
2017-12-31 13:51:25 +00:00
|
|
|
setTimeout(function () {
|
2018-01-02 09:02:03 +00:00
|
|
|
delCookie(cookieName);
|
|
|
|
setCookie(cookieName, "Yes");
|
2017-12-31 13:51:25 +00:00
|
|
|
window.location = "/"
|
|
|
|
}, 100)
|
2017-12-21 03:31:13 +00:00
|
|
|
})
|
|
|
|
.on('click', '#switch_user', function () {
|
2018-01-02 09:02:03 +00:00
|
|
|
var cookieName = "IN_ADMIN_PAGE";
|
2017-12-31 13:51:25 +00:00
|
|
|
setTimeout(function () {
|
2018-01-02 09:02:03 +00:00
|
|
|
delCookie(cookieName);
|
|
|
|
setCookie(cookieName, "No");
|
2018-01-09 05:10:28 +00:00
|
|
|
window.location = "{% url 'assets:user-asset-list' %}"
|
2017-12-31 13:51:25 +00:00
|
|
|
}, 100);
|
2017-12-21 03:31:13 +00:00
|
|
|
})
|
|
|
|
</script>
|