jumpserver/apps/templates/_header_bar.html

79 lines
3.6 KiB
HTML
Raw Normal View History

2016-09-03 16:51:36 +00:00
{% load i18n %}
<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">
<div class="navbar-header">
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
<!--<form role="search" class="navbar-form-custom" method="get" action="">-->
<!--<div class="form-group">-->
<!--<input type="text" placeholder="{% trans 'Search' %}..." class="form-control" name="search" id="top-search">-->
<!--</div>-->
<!--</form>-->
</div>
<ul class="nav navbar-top-links navbar-right">
2018-01-22 15:47:41 +00:00
{# <li>#}
{# <span class="m-r-sm text-muted welcome-message">{% trans 'Welcome to use Jumpserver system' %}</span>#}
{# </li>#}
<li class="dropdown">
2018-03-06 13:09:40 +00:00
<a class="count-info" href="https://market.aliyun.com/products/53690006/cmgj026011.html?spm=5176.730005.0.0.cY2io1" target="_blank">
<span class="m-r-sm text-muted welcome-message">{% trans 'Supports' %}</span>
</a>
</li>
<li class="dropdown">
2018-03-06 13:09:40 +00:00
<a class="count-info" href="http://jumpserver.readthedocs.io/" target="_blank">
<span class="m-r-sm text-muted welcome-message">{% trans 'Docs' %}</span>
</a>
</li>
2018-01-02 09:07:00 +00:00
<li class="dropdown">
{% if request.user.is_authenticated %}
2018-01-02 09:07:00 +00:00
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<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>
</a>
2018-03-06 09:05:36 +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>
2018-01-02 09:07:00 +00:00
{% if request.user.is_superuser %}
{% 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-02 09:07:00 +00:00
{% endif %}
<li><a href="{% url 'users:logout' %}"><i class="fa fa-sign-out"></i> {% trans 'Logout' %}</a></li>
2018-01-02 09:07:00 +00:00
</ul>
{% else %}
<a href="{% url 'users:login' %}">
2016-09-06 07:09:00 +00:00
<i class="fa fa-sign-in"></i>{% trans 'Login' %}
</a>
{% endif %}
</li>
</ul>
</nav>
</div>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-sm-10">
<h2></h2>
<ol class="breadcrumb">
<li>
2017-04-07 09:09:25 +00:00
<a href="">{% trans 'Dashboard' %}</a>
</li>
{% if app %}
2018-03-04 05:01:33 +00:00
<li>
<a>{{ app }}</a>
</li>
2018-03-04 05:01:33 +00:00
{% endif %}
{% if action %}
<li class="active">
<strong>{{ action }}</strong>
</li>
{% endif %}
</ol>
</div>
<div class="col-sm-2">
</div>
</div>