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-02 09:07:00 +00:00
|
|
|
<div>
|
|
|
|
<img alt="image" height="40" src="/static/img/logo.png"/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span>Jumpserver</span>
|
|
|
|
</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
|
|
|
</li>
|
2017-12-21 03:31:13 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
})
|
|
|
|
.on('click', '#switch_admin', function () {
|
2017-12-31 13:51:25 +00:00
|
|
|
setTimeout(function () {
|
|
|
|
setCookie("IN_ADMIN_PAGE", "Yes");
|
|
|
|
window.location = "/"
|
|
|
|
}, 100)
|
2017-12-21 03:31:13 +00:00
|
|
|
})
|
|
|
|
.on('click', '#switch_user', function () {
|
2017-12-31 13:51:25 +00:00
|
|
|
setTimeout(function () {
|
|
|
|
console.log("Set to No");
|
|
|
|
setCookie("IN_ADMIN_PAGE", "No");
|
|
|
|
window.location = "/"
|
|
|
|
}, 100);
|
2017-12-21 03:31:13 +00:00
|
|
|
})
|
|
|
|
</script>
|