2016-09-03 16:51:36 +00:00
|
|
|
{% load i18n %}
|
2019-08-21 12:27:21 +00:00
|
|
|
{% include 'authentication/_access_key_modal.html' %}
|
2016-08-09 06:42:21 +00:00
|
|
|
<div class="row border-bottom">
|
2016-08-23 11:36:15 +00:00
|
|
|
<nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
|
2016-08-09 06:42:21 +00:00
|
|
|
<div class="navbar-header">
|
|
|
|
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
|
|
|
|
</div>
|
|
|
|
<ul class="nav navbar-top-links navbar-right">
|
|
|
|
<li class="dropdown">
|
2018-09-03 03:24:25 +00:00
|
|
|
<a class="count-info dropdown-toggle" data-toggle="dropdown" href="#" target="_blank">
|
|
|
|
<i class="fa fa-handshake-o"></i>
|
|
|
|
<span class="m-r-sm text-muted welcome-message">{% trans 'Help' %} <b class="caret"></b></span>
|
2018-03-02 01:36:17 +00:00
|
|
|
</a>
|
2018-09-03 03:24:25 +00:00
|
|
|
|
|
|
|
<ul class="dropdown-menu animated fadeInRight m-t-xs profile-dropdown">
|
|
|
|
<li>
|
2023-09-11 10:15:03 +00:00
|
|
|
<a class="count-info" href="http://docs.jumpserver.org/" target="_blank">
|
2018-09-03 03:24:25 +00:00
|
|
|
<i class="fa fa-file-text"></i>
|
|
|
|
<span class="m-r-sm text-muted welcome-message">{% trans 'Docs' %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2023-09-11 10:15:03 +00:00
|
|
|
<a class="count-info"
|
|
|
|
href="https://market.aliyun.com/products/53690006/cmgj026011.html?spm=5176.730005.0.0.cY2io1"
|
|
|
|
target="_blank">
|
2018-09-03 03:24:25 +00:00
|
|
|
<i class="fa fa-suitcase"></i>
|
|
|
|
<span class="m-r-sm text-muted welcome-message">{% trans 'Commercial support' %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2018-03-02 01:36:17 +00:00
|
|
|
</li>
|
2018-09-03 03:24:25 +00:00
|
|
|
|
2018-03-02 01:36:17 +00:00
|
|
|
<li class="dropdown">
|
2018-09-03 03:24:25 +00:00
|
|
|
<a class="count-info dropdown-toggle" data-toggle="dropdown" href="#" target="_blank">
|
|
|
|
<i class="fa fa-globe"></i>
|
2023-09-11 10:15:03 +00:00
|
|
|
{% if request.COOKIES.django_language == 'en' %}
|
2018-09-03 03:24:25 +00:00
|
|
|
<span class="m-r-sm text-muted welcome-message">English<b class="caret"></b></span>
|
|
|
|
{% else %}
|
|
|
|
<span class="m-r-sm text-muted welcome-message">中文<b class="caret"></b></span>
|
2023-09-11 10:15:03 +00:00
|
|
|
{% endif %}
|
2016-08-09 06:42:21 +00:00
|
|
|
</a>
|
2018-09-03 03:24:25 +00:00
|
|
|
|
|
|
|
<ul class="dropdown-menu animated fadeInRight m-t-xs profile-dropdown">
|
|
|
|
<li>
|
|
|
|
<a id="switch_cn" href="{% url 'i18n-switch' lang='zh-hans' %}">
|
|
|
|
<i class="fa fa-flag"></i>
|
|
|
|
<span> 中文</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a id="switch_en" href="{% url 'i18n-switch' lang='en' %}">
|
|
|
|
<i class="fa fa-flag-checkered"></i>
|
|
|
|
<span> English</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-03-25 07:15:20 +00:00
|
|
|
<li>
|
|
|
|
<a id="switch_ja" href="{% url 'i18n-switch' lang='ja' %}">
|
|
|
|
<i class="fa fa-flag-checkered"></i>
|
|
|
|
<span> 日本語</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-09-03 03:24:25 +00:00
|
|
|
</ul>
|
2016-08-09 06:42:21 +00:00
|
|
|
</li>
|
2018-09-03 03:24:25 +00:00
|
|
|
|
|
|
|
|
2018-01-02 09:07:00 +00:00
|
|
|
<li class="dropdown">
|
2018-01-05 06:36:49 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
2023-09-11 10:15:03 +00:00
|
|
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
2018-01-02 09:07:00 +00:00
|
|
|
<span class="m-r-sm text-muted welcome-message">
|
2018-01-22 15:47:41 +00:00
|
|
|
<img alt="image" class="img-circle" width="30" height="30" src="{{ request.user.avatar_url }}"/>
|
|
|
|
<span style="font-size: 13px;font-weight: 400"> {{ request.user.name }}
|
2018-01-02 09:40:49 +00:00
|
|
|
<b class="caret"></b>
|
2018-01-22 15:47:41 +00:00
|
|
|
</span>
|
2018-01-02 09:07:00 +00:00
|
|
|
</span>
|
2016-08-09 06:42:21 +00:00
|
|
|
</a>
|
2023-09-11 10:15:03 +00:00
|
|
|
<ul class="dropdown-menu animated fadeInRight m-t-xs profile-dropdown">
|
|
|
|
<li><a href="{% url 'users:user-profile' %}"><i
|
|
|
|
class="fa fa-cogs"> </i><span> {% trans 'Profile' %}</span></a></li>
|
|
|
|
{% if request.user.can_admin_or_audit_current_org %}
|
|
|
|
{% if request.COOKIES.IN_ADMIN_PAGE == 'No' %}
|
|
|
|
<li><a id="switch_admin"><i
|
|
|
|
class="fa fa-exchange"></i><span> {% trans 'Admin page' %}</span></a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><a id="switch_user"><i
|
|
|
|
class="fa fa-exchange"></i><span> {% trans 'User page' %}</span></a></li>
|
|
|
|
{% endif %}
|
2018-01-05 06:36:49 +00:00
|
|
|
{% endif %}
|
2023-09-11 10:15:03 +00:00
|
|
|
<li><a href="#" data-toggle="modal" data-target="#access_key_modal" tabindex="0"><i
|
|
|
|
class="fa fa-key"></i> {% trans 'API Key' %}</a></li>
|
2019-02-27 12:55:28 +00:00
|
|
|
<li><a href="{% url 'authentication:logout' %}"><i class="fa fa-sign-out"></i> {% trans 'Logout' %}</a></li>
|
2018-01-02 09:07:00 +00:00
|
|
|
</ul>
|
2016-09-05 13:38:21 +00:00
|
|
|
{% else %}
|
2023-09-11 10:15:03 +00:00
|
|
|
<a href="{% url 'authentication:login' %}">
|
2016-09-06 07:09:00 +00:00
|
|
|
<i class="fa fa-sign-in"></i>{% trans 'Login' %}
|
2016-09-05 13:38:21 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2016-08-09 06:42:21 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row wrapper border-bottom white-bg page-heading">
|
|
|
|
<div class="col-sm-10">
|
2016-08-25 05:56:49 +00:00
|
|
|
<h2></h2>
|
2016-08-09 06:42:21 +00:00
|
|
|
<ol class="breadcrumb">
|
2016-08-25 05:56:49 +00:00
|
|
|
{% if app %}
|
2023-09-11 10:15:03 +00:00
|
|
|
<li>
|
2016-08-25 05:56:49 +00:00
|
|
|
<a>{{ app }}</a>
|
2016-08-09 06:42:21 +00:00
|
|
|
</li>
|
2018-03-04 05:01:33 +00:00
|
|
|
{% endif %}
|
2016-08-25 05:56:49 +00:00
|
|
|
{% if action %}
|
2023-09-11 10:15:03 +00:00
|
|
|
<li class="active">
|
2016-08-25 05:56:49 +00:00
|
|
|
<strong>{{ action }}</strong>
|
2016-08-09 06:42:21 +00:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-12 10:56:26 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
})
|
2023-09-11 10:15:03 +00:00
|
|
|
.on('click', '#switch_admin', function () {
|
|
|
|
var cookieName = "IN_ADMIN_PAGE";
|
|
|
|
setTimeout(function () {
|
|
|
|
delCookie(cookieName);
|
|
|
|
setCookie(cookieName, "Yes");
|
|
|
|
window.location = "/"
|
|
|
|
}, 100)
|
|
|
|
})
|
|
|
|
.on('click', '#switch_user', function () {
|
|
|
|
var cookieName = "IN_ADMIN_PAGE";
|
|
|
|
setTimeout(function () {
|
|
|
|
delCookie(cookieName);
|
|
|
|
setCookie(cookieName, "No");
|
|
|
|
}, 100);
|
|
|
|
})
|
2019-09-12 10:56:26 +00:00
|
|
|
</script>
|