jumpserver/apps/templates/_user_profile.html

31 lines
724 B
HTML
Raw Normal View History

{% load static %}
2016-09-03 16:51:36 +00:00
{% load i18n %}
<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>
</div>
2018-01-02 09:07:00 +00:00
<div class="clearfix"></div>
</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>