jumpserver/apps/templates/_nav.html

96 lines
4.2 KiB
HTML
Raw Normal View History

2016-09-03 16:51:36 +00:00
{% load i18n %}
2016-08-23 09:34:52 +00:00
<li id="index">
2017-04-02 10:09:40 +00:00
<a href="{% url 'index' %}">
2018-07-13 07:05:46 +00:00
<i class="fa fa-dashboard" style="width: 14px"></i> <span class="nav-label">{% trans 'Dashboard' %}</span>
<span class="label label-info pull-right"></span>
2016-08-09 08:12:11 +00:00
</a>
</li>
2016-08-23 09:34:52 +00:00
<li id="users">
2016-08-09 08:12:11 +00:00
<a href="#">
2018-02-26 09:28:03 +00:00
<i class="fa fa-group" style="width: 14px"></i> <span class="nav-label">{% trans 'Users' %}</span><span class="fa arrow"></span>
2016-08-09 08:12:11 +00:00
</a>
2016-08-23 09:34:52 +00:00
<ul class="nav nav-second-level active">
2018-02-25 10:08:00 +00:00
<li id="user"><a href="{% url 'users:user-list' %}">{% trans 'User list' %}</a></li>
<li id="user-group"><a href="{% url 'users:user-group-list' %}">{% trans 'User group' %}</a></li>
2017-12-05 04:24:31 +00:00
<li id="login-log"><a href="{% url 'users:login-log-list' %}">{% trans 'Login logs' %}</a></li>
</ul>
</li>
2016-09-05 12:27:44 +00:00
<li id="assets">
2016-08-09 08:12:11 +00:00
<a>
2018-02-26 09:28:03 +00:00
<i class="fa fa-inbox" style="width: 14px"></i> <span class="nav-label">{% trans 'Assets' %}</span><span class="fa arrow"></span>
2016-08-09 08:12:11 +00:00
</a>
<ul class="nav nav-second-level">
2018-02-25 10:08:00 +00:00
<li id="asset"><a href="{% url 'assets:asset-list' %}">{% trans 'Asset list' %}</a></li>
2018-03-23 11:46:46 +00:00
<li id="domain"><a href="{% url 'assets:domain-list' %}">{% trans 'Domain list' %}</a></li>
2016-09-07 16:40:59 +00:00
<li id="admin-user"><a href="{% url 'assets:admin-user-list' %}">{% trans 'Admin user' %}</a></li>
2016-09-08 16:09:49 +00:00
<li id="system-user"><a href="{% url 'assets:system-user-list' %}">{% trans 'System user' %}</a></li>
2018-01-26 07:49:09 +00:00
<li id="label"><a href="{% url 'assets:label-list' %}">{% trans 'Labels' %}</a></li>
</ul>
</li>
2016-09-11 14:45:24 +00:00
<li id="perms">
2018-02-26 09:28:03 +00:00
<a href="#"><i class="fa fa-edit" style="width: 14px"></i> <span class="nav-label">{% trans 'Perms' %}</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
2016-09-11 14:45:24 +00:00
<li id="asset-permission">
<a href="{% url 'perms:asset-permission-list' %}">{% trans 'Asset permission' %}</a>
</li>
</ul>
</li>
<li id="terminal">
<a>
2018-02-26 09:28:03 +00:00
<i class="fa fa-rocket" style="width: 14px"></i> <span class="nav-label">{% trans 'Sessions' %}</span><span class="fa arrow"></span>
</a>
<ul class="nav nav-second-level">
<li id="session-online"><a href="{% url 'terminal:session-online-list' %}">{% trans 'Session online' %}</a></li>
<li id="session-offline"><a href="{% url 'terminal:session-offline-list' %}">{% trans 'Session offline' %}</a></li>
2018-01-26 07:49:09 +00:00
<li id="command"><a href="{% url 'terminal:command-list' %}">{% trans 'Commands' %}</a></li>
2018-03-04 05:01:33 +00:00
<li>
<a href="{% url 'terminal:web-terminal' %}" target="_blank">
<span class="nav-label">{% trans 'Web terminal' %}</span>
</a>
</li>
{% if request.user.is_superuser %}
2018-01-26 07:49:09 +00:00
<li id="terminal"><a href="{% url 'terminal:terminal-list' %}">{% trans 'Terminal' %}</a></li>
{% endif %}
</ul>
</li>
{% if request.user.is_superuser %}
2018-01-25 07:43:52 +00:00
<li id="ops">
<a>
2018-02-26 09:28:03 +00:00
<i class="fa fa-coffee" style="width: 14px"></i> <span class="nav-label">{% trans 'Job Center' %}</span><span class="fa arrow"></span>
2018-01-25 07:43:52 +00:00
</a>
<ul class="nav nav-second-level">
2018-02-25 10:08:00 +00:00
<li id="task"><a href="{% url 'ops:task-list' %}">{% trans 'Task list' %}</a></li>
2018-01-25 07:43:52 +00:00
</ul>
</li>
{% endif %}
2018-04-06 03:27:52 +00:00
<li id="audits">
<a>
2018-04-13 13:26:10 +00:00
<i class="fa fa-history" style="width: 14px"></i> <span class="nav-label">{% trans 'Audits' %}</span><span class="fa arrow"></span>
2018-04-06 03:27:52 +00:00
</a>
<ul class="nav nav-second-level">
2018-04-06 05:23:15 +00:00
<li id="ftp-log"><a href="{% url 'audits:ftp-log-list' %}">{% trans 'FTP log' %}</a></li>
2018-04-06 03:27:52 +00:00
</ul>
</li>
{#<li id="">#}
{# <a href="#">#}
{# <i class="fa fa-download"></i> <span class="nav-label">{% trans 'File' %}</span><span class="fa arrow"></span>#}
{# </a>#}
{# <ul class="nav nav-second-level">#}
{# <li id="upload"><a href="">{% trans 'File upload' %}</a></li>#}
{# <li id="download"><a href="">{% trans 'File download' %}</a></li>#}
{# </ul>#}
{#</li>#}
{% if request.user.is_superuser %}
2018-01-12 07:43:26 +00:00
<li id="settings">
2018-01-14 10:02:11 +00:00
<a href="{% url 'settings:basic-setting' %}">
2018-01-12 07:43:26 +00:00
<i class="fa fa-gears"></i> <span class="nav-label">{% trans 'Settings' %}</span><span class="label label-info pull-right"></span>
</a>
2018-07-13 07:05:46 +00:00
</li>
{% endif %}
2018-07-13 07:05:46 +00:00
<script>
$(document).ready(function () {
var current_org = '{{ CURRENT_ORG.name }}';
console.log(current_org);
})
</script>