2015-04-20 02:12:11 +00:00
|
|
|
{% load humanize %}
|
|
|
|
{% load mytags %}
|
|
|
|
<nav class="navbar navbar-static-top" 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="输入搜索..." class="form-control" name="search" id="top-search">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<ul class="nav navbar-top-links navbar-right">
|
|
|
|
<li>
|
|
|
|
<span class="m-r-sm text-muted welcome-message">欢迎使用Jumpserver开源跳板机系统</span>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
|
|
|
|
<i class="fa fa-envelope"></i> <span class="label label-warning">{{ apply_info.count }}</span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-messages">
|
|
|
|
{% if apply_info %}
|
|
|
|
{% for apply in apply_info %}
|
|
|
|
<li>
|
|
|
|
<div class="dropdown-messages-box">
|
|
|
|
<a href="/jperm/apply_show/online/" class="pull-left">
|
|
|
|
<img alt="image" class="img-circle" src="/static/img/a4.jpg">
|
|
|
|
</a>
|
|
|
|
<div class="media-body">
|
|
|
|
<small class="pull-right text-navy">{{ apply.date_add|naturaltime }}</small>
|
|
|
|
<strong>{{ apply.applyer }}</strong><br>
|
|
|
|
<small class="text-muted">主机组: {{ apply.bisgroup|ast_to_list }}</small><br/>
|
|
|
|
<small class="text-muted">主机: {{ apply.asset|ast_to_list }}</small><br/>
|
|
|
|
<small class="text-muted">申请时间: {{ apply.date_add|date:"Y-m-d H:i:s" }}</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
{% endfor %}
|
|
|
|
<li>
|
|
|
|
<div class="text-center link-block">
|
|
|
|
<a href="/jperm/apply_show/online/">
|
|
|
|
<i class="fa fa-envelope"></i> <strong>Read All Messages</strong>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li>
|
|
|
|
<div class="text-center link-block">
|
2015-04-24 12:39:44 +00:00
|
|
|
<i class="fa fa-envelope"></i> <strong>(暂无申请)</strong>
|
2015-04-20 02:12:11 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-04-24 12:42:15 +00:00
|
|
|
{# <li class="dropdown open">#}
|
|
|
|
{# <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#" aria-expanded="true">#}
|
|
|
|
{# <i class="fa fa-bell"></i> <span class="label label-primary">0</span>#}
|
|
|
|
{# </a>#}
|
|
|
|
{# <ul class="dropdown-menu dropdown-alerts">#}
|
|
|
|
{# <li>#}
|
|
|
|
{# <a href="mailbox.html">#}
|
|
|
|
{# <div>#}
|
|
|
|
{# <i class="fa fa-envelope"></i> <strong>(暂无告警)</strong>#}
|
2015-04-24 12:39:44 +00:00
|
|
|
{# <i class="fa fa-envelope fa-fw"></i> You have 16 messages#}
|
|
|
|
{# <span class="pull-right text-muted small">4 minutes ago</span>#}
|
2015-04-24 12:42:15 +00:00
|
|
|
{# </div>#}
|
|
|
|
{# </a>#}
|
|
|
|
{# </li>#}
|
2015-04-24 12:39:44 +00:00
|
|
|
{# <li class="divider"></li>#}
|
2015-04-24 12:42:15 +00:00
|
|
|
{##}
|
|
|
|
{# </ul>#}
|
|
|
|
{# </li>#}
|
2015-04-20 02:12:11 +00:00
|
|
|
<li>
|
|
|
|
<a href="/logout/">
|
|
|
|
<i class="fa fa-sign-out"></i> Log out
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|