jumpserver/templates/nav.html

151 lines
9.1 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' %}
2015-04-11 04:52:17 +00:00
<li id="index">
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
</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-15 15:23:20 +00:00
<li class="dept_list dept_edit"><a href="/juser/dept_list/">鏌ョ湅閮ㄩ棬</a></li>
2015-03-14 09:54:27 +00:00
<li class="dept_add"><a href="/juser/dept_add/">娣诲姞閮ㄩ棬</a></li>
2015-03-15 15:23:20 +00:00
<li class="group_list group_edit"><a href="/juser/group_list/">鏌ョ湅灏忕粍</a></li>
2015-03-14 09:54:27 +00:00
<li class="group_add"><a href="/juser/group_add/">娣诲姞灏忕粍</a></li>
2015-04-06 15:04:31 +00:00
<li class="user_list user_edit user_detail"><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>
2015-03-14 09:54:27 +00:00
<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>
2015-04-13 13:25:43 +00:00
<li class="host_list host_detail host_edit"><a href="/jasset/host_list/">鏌ョ湅璧勪骇<span class="label label-info pull-right">{{ host_active_num }}/{{ host_total_num}}</span></a></li>
2015-04-11 09:45:33 +00:00
<li class="idc_add"><a href="/jasset/idc_add/">娣诲姞IDC</a></li>
<li class="idc_list idc_detail idc_edit"><a href="/jasset/idc_list/">鏌ョ湅IDC</a></li>
<li class="group_add"><a href="/jasset/group_add/">娣诲姞涓绘満缁</a></li>
2015-04-13 13:25:43 +00:00
<li class="group_list group_detail group_edit"><a href="/jasset/group_list/">鏌ョ湅涓绘満缁</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-15 15:23:20 +00:00
<li class="dept_perm_list dept_perm_edit">
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-04-18 08:58:16 +00:00
<li class="perm_list perm_edit perm_detail ">
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-04-11 09:45:33 +00:00
<li class="sudo_list sudo_edit sudo_add cmd_list cmd_edit cmd_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-04-04 04:47:07 +00:00
<li class="apply_show online"><a href="/jperm/apply_show/online/">鏉冮檺瀹℃壒</a></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-03-21 07:08:16 +00:00
<a href="/jlog/log_list/online/"><i class="fa fa-files-o"></i> <span class="nav-label">鏃ュ織瀹¤</span><span class="label label-info pull-right"></span></a>
2015-01-05 14:35:25 +00:00
</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' %}
2015-04-11 04:52:17 +00:00
<li id="index">
2015-03-13 15:46:38 +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>
</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">
2015-03-15 15:23:20 +00:00
<li class="dept_list dept_edit"><a href="/juser/dept_list/">鏌ョ湅閮ㄩ棬</a></li>
2015-03-19 15:57:08 +00:00
<li class="group_list group_edit"><a href="/juser/group_list/">鏌ョ湅灏忕粍</a></li>
2015-03-15 15:23:20 +00:00
<li class="group_add"><a href="/juser/group_add/">娣诲姞灏忕粍</a></li>
2015-04-11 09:45:33 +00:00
<li class="user_list user_detail"><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>
2015-03-15 15:23:20 +00:00
<li class="user_add"><a href="/juser/user_add/">娣诲姞鐢ㄦ埛</a></li>
2015-03-13 15:46:38 +00:00
</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">
2015-03-19 10:32:10 +00:00
<li class="host_add host_add_multi"><a href="/jasset/host_add/">娣诲姞璧勪骇</a></li>
2015-04-11 09:45:33 +00:00
<li class="host_list host_detail host_edit"><a href="/jasset/host_list/">鏌ョ湅璧勪骇<span class="label label-info pull-right">{{ host_active_num }}/{{ host_total_num}}</span></a></li>
<li class="idc_list idc_detail idc_edit"><a href="/jasset/idc_list/">鏌ョ湅IDC</a></li>
<li class="group_add"><a href="/jasset/group_add/">娣诲姞涓绘満缁</a></li>
2015-04-13 13:25:43 +00:00
<li class="group_list group_detail group_edit"><a href="/jasset/group_list/">鏌ョ湅涓绘満缁</a></li>
2015-03-13 15:46:38 +00:00
</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">
2015-04-18 08:58:16 +00:00
<li class="perm_list perm_edit perm_detail">
2015-03-13 15:46:38 +00:00
<a href="/jperm/perm_list/">灏忕粍鎺堟潈</a>
</li>
2015-04-11 09:45:33 +00:00
<li class="sudo_list sudo_edit sudo_add cmd_list cmd_edit cmd_add">
2015-03-13 15:46:38 +00:00
<a href="/jperm/sudo_list/">Sudo鎺堟潈</a>
</li>
2015-04-04 04:47:07 +00:00
<li class="apply_show online"><a href="/jperm/apply_show/online/">鏉冮檺瀹℃壒</a></li>
2015-03-13 15:46:38 +00:00
</ul>
</li>
<li id="jlog">
2015-03-21 07:08:16 +00:00
<a href="/jlog/log_list/online/"><i class="fa fa-files-o"></i> <span class="nav-label">鏃ュ織瀹¤</span><span class="label label-info pull-right"></span></a>
2015-03-19 10:32:10 +00:00
</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 %}
{% ifequal session_role_id 0 %}
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="side-menu">
{% include 'nav_li_profile.html' %}
2015-04-11 04:52:17 +00:00
<li id="index">
2015-03-19 10:32:10 +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>
</li>
<li class="user_detail">
2015-04-06 15:04:31 +00:00
<a href="/juser/user_detail/?id={{ session_user_id }}"><i class="fa fa-rebel"></i> <span class="nav-label">涓汉淇℃伅</span><span class="label label-info pull-right"></span></a>
2015-03-19 10:32:10 +00:00
</li>
2015-03-26 10:42:52 +00:00
<li id="jasset">
<a href="/jasset/host_list/"><i class="fa fa-cube"></i> <span class="nav-label">鏌ョ湅涓绘満</span><span class="label label-info pull-right"></span></a>
2015-03-19 10:32:10 +00:00
</li>
2015-03-26 10:42:52 +00:00
<li id="jperm">
<a><i class="fa fa-cube"></i> <span class="nav-label">鏉冮檺鐢宠</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
2015-04-01 10:58:10 +00:00
<li class="apply"><a href="/jperm/apply/">鐢宠涓绘満</a></li>
<li class="apply_show online"><a href="/jperm/apply_show/online/">鐢宠璁板綍</a></li>
2015-03-26 10:42:52 +00:00
</ul>
2015-03-13 15:46:38 +00:00
</li>
2015-03-26 10:42:52 +00:00
<li id="jlog">
<a href="/jlog/log_list/online/"><i class="fa fa-files-o"></i> <span class="nav-label">鐧诲綍鍘嗗彶</span><span class="label label-info pull-right"></span></a>
2015-03-21 07:08:16 +00:00
</li>
2015-04-11 04:52:17 +00:00
<li id="file">
2015-03-13 15:46:38 +00:00
<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">
2015-04-11 04:52:17 +00:00
<li class="upload"><a href="/file/upload/">鏂囦欢涓婁紶</a></li>
<li class="download"><a href="/file/download/">鏂囦欢涓嬭浇</a></li>
2015-03-13 15:46:38 +00:00
</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 %}