jumpserver/templates/nav.html

142 lines
8.3 KiB
HTML
Raw Normal View History

2015-03-13 15:46:38 +00:00
{% ifequal session_role_id 2 %}
2015-01-05 14:35:25 +00:00
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="side-menu">
{% include 'nav_li_profile.html' %}
<li>
2015-01-07 16:07:00 +00:00
<a href="/"><i class="fa fa-th-large"></i> <span class="nav-label">浠〃鐩</span><span class="label label-info pull-right"></span></a>
2015-01-05 14:35:25 +00:00
<!--<a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">浠〃鐩</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="index.html">Dashboard v.1</a></li>
<li ><a href="dashboard_2.html">Dashboard v.2</a></li>
<li ><a href="dashboard_3.html">Dashboard v.3</a></li>
</ul>-->
</li>
2015-01-24 04:13:49 +00:00
<li id="juser">
2015-01-05 14:35:25 +00:00
<a href="#"><i class="fa fa-rebel"></i> <span class="nav-label">鐢ㄦ埛绠$悊</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
2015-03-14 09:54:27 +00:00
<li class="dept_list"><a href="/juser/dept_list/">鏌ョ湅閮ㄩ棬</a></li>
<li class="dept_add"><a href="/juser/dept_add/">娣诲姞閮ㄩ棬</a></li>
<li class="group_list"><a href="/juser/group_list/">鏌ョ湅灏忕粍</a></li>
<li class="group_add"><a href="/juser/group_add/">娣诲姞灏忕粍</a></li>
<li class="user_list user_edit"><a href="/juser/user_list/">鏌ョ湅鐢ㄦ埛<span class="label {% ifequal user_active_num user_total_num %}label-primary {% else %}label-warning {% endifequal %}pull-right">{{ user_active_num }}/{{ user_total_num }}</span></a></li>
<li class="user_add"><a href="/juser/user_add/">娣诲姞鐢ㄦ埛</a></li>
2015-01-05 14:35:25 +00:00
</ul>
</li>
2015-01-24 04:13:49 +00:00
<li id="jasset">
2015-02-11 09:53:17 +00:00
<a><i class="fa fa-cube"></i> <span class="nav-label">璧勪骇绠$悊</span><span class="fa arrow"></span></a>
2015-01-05 14:35:25 +00:00
<ul class="nav nav-second-level">
2015-03-14 09:54:27 +00:00
<li class="host_add host_add_multi"><a href="/jasset/host_add/">娣诲姞璧勪骇</a></li>
<li class="host_list"><a href="/jasset/host_list/">鏌ョ湅璧勪骇&nbsp&nbsp</span><span class="label label-info pull-right">16/18</span></a></li>
<li class="jgroup_add"><a href="/jasset/jgroup_add/">娣诲姞涓绘満缁</a></li>
<li class="jgroup_list group_detail"><a href="/jasset/jgroup_list/">鏌ョ湅涓绘満缁</a></li>
<li class="idc_add"><a href="/jasset/idc_add/">娣诲姞IDC</a></li>
<li class="idc_list idc_detail"><a href="/jasset/idc_list/">鏌ョ湅IDC</a></li>
2015-01-05 14:35:25 +00:00
</ul>
</li>
2015-01-24 04:13:49 +00:00
<li id="jperm">
2015-01-05 14:35:25 +00:00
<a href="#"><i class="fa fa-edit"></i> <span class="nav-label">鎺堟潈绠$悊</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
2015-03-11 09:59:15 +00:00
<li id="dept_perm_list">
2015-03-11 15:46:35 +00:00
<a href="/jperm/dept_perm_list/">閮ㄩ棬鎺堟潈</a>
2015-03-11 09:59:15 +00:00
</li>
2015-03-11 15:46:35 +00:00
2015-03-05 16:24:17 +00:00
<li id="perm_list">
2015-03-11 15:46:35 +00:00
<a href="/jperm/perm_list/">灏忕粍鎺堟潈</a>
2015-03-05 16:24:17 +00:00
</li>
2015-03-07 09:37:26 +00:00
2015-03-05 16:24:17 +00:00
<li id="sudo_add">
2015-03-12 16:09:18 +00:00
<a href="/jperm/sudo_list/">Sudo鎺堟潈</a>
2015-03-05 16:24:17 +00:00
</li>
2015-01-03 14:24:34 +00:00
</ul>
2015-01-05 14:35:25 +00:00
</li>
2015-01-24 05:54:08 +00:00
<li id="jlog">
2015-01-05 14:35:25 +00:00
<a href="#"><i class="fa fa-files-o"></i> <span class="nav-label">鏃ュ織瀹¤</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
2015-02-09 11:02:25 +00:00
<li id="log_list"><a href="/jlog/log_list/online/">鏌ョ湅鏃ュ織</a></li>
2015-01-24 05:54:08 +00:00
<li id="log_detail"><a href="/jlog/log_detail/">鏃ュ織鍒嗘瀽</a></li>
2015-01-05 14:35:25 +00:00
</ul>
</li>
<li>
<a href="#"><i class="fa fa-download"></i> <span class="nav-label">涓婁紶涓嬭浇</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="/file/upload/">鏂囦欢涓婁紶</a></li>
<li><a href="/file/download/">鏂囦欢涓嬭浇</a></li>
</ul>
</li>
<li class="special_link">
<a href="http://www.jumpserver.org" target="_blank"><i class="fa fa-database"></i> <span class="nav-label">璁块棶瀹樼綉</span></a>
</li>
</ul>
2015-01-03 14:24:34 +00:00
2015-01-05 14:35:25 +00:00
</div>
2015-03-13 15:46:38 +00:00
</nav>
{% endifequal %}
{% ifequal session_role_id 1 %}
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="side-menu">
{% include 'nav_li_profile.html' %}
<li>
<a href="/"><i class="fa fa-th-large"></i> <span class="nav-label">浠〃鐩</span><span class="label label-info pull-right"></span></a>
<!--<a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">浠〃鐩</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="index.html">Dashboard v.1</a></li>
<li ><a href="dashboard_2.html">Dashboard v.2</a></li>
<li ><a href="dashboard_3.html">Dashboard v.3</a></li>
</ul>-->
</li>
<li id="juser">
<a href="#"><i class="fa fa-rebel"></i> <span class="nav-label">鐢ㄦ埛绠$悊</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li id="group_list"><a href="/juser/group_list/">鏌ョ湅灏忕粍</a></li>
<li id="group_add"><a href="/juser/group_add/">娣诲姞灏忕粍</a></li>
<li id="user_list"><a href="/juser/user_list/">鏌ョ湅鐢ㄦ埛<span class="label {% ifequal user_active_num user_total_num %}label-primary {% else %}label-warning {% endifequal %}pull-right">{{ user_active_num }}/{{ user_total_num }}</span></a></li>
<li id="user_add"><a href="/juser/user_add/">娣诲姞鐢ㄦ埛</a></li>
</ul>
</li>
<li id="jasset">
<a><i class="fa fa-cube"></i> <span class="nav-label">璧勪骇绠$悊</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li id="host_add"><a href="/jasset/host_add/">娣诲姞璧勪骇</a></li>
<li id="host_list"><a href="/jasset/host_list/">鏌ョ湅璧勪骇&nbsp&nbsp</span><span class="label label-info pull-right">16/18</span></a></li>
<li id="jgroup_add"><a href="/jasset/jgroup_add/">娣诲姞涓绘満缁</a></li>
<li id="jgroup_list"><a href="/jasset/jgroup_list/">鏌ョ湅涓绘満缁</a></li>
<li id="idc_list"><a href="/jasset/idc_list/">鏌ョ湅IDC</a></li>
</ul>
</li>
<li id="jperm">
<a href="#"><i class="fa fa-edit"></i> <span class="nav-label">鎺堟潈绠$悊</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li id="perm_list">
<a href="/jperm/perm_list/">灏忕粍鎺堟潈</a>
</li>
<li id="sudo_add">
<a href="/jperm/sudo_list/">Sudo鎺堟潈</a>
</li>
</ul>
</li>
<li id="jlog">
<a href="#"><i class="fa fa-files-o"></i> <span class="nav-label">鏃ュ織瀹¤</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li id="log_list"><a href="/jlog/log_list/online/">鏌ョ湅鏃ュ織</a></li>
<li id="log_detail"><a href="/jlog/log_detail/">鏃ュ織鍒嗘瀽</a></li>
</ul>
</li>
<li>
<a href="#"><i class="fa fa-download"></i> <span class="nav-label">涓婁紶涓嬭浇</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="/file/upload/">鏂囦欢涓婁紶</a></li>
<li><a href="/file/download/">鏂囦欢涓嬭浇</a></li>
</ul>
</li>
<li class="special_link">
<a href="http://www.jumpserver.org" target="_blank"><i class="fa fa-database"></i> <span class="nav-label">璁块棶瀹樼綉</span></a>
</li>
</ul>
</div>
</nav>
{% endifequal %}