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>
|
2016-08-09 06:42:21 +00:00
|
|
|
</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>
|
2016-09-06 06:38:19 +00:00
|
|
|
<li id="user-group"><a href="{% url 'users:user-group-list' %}">{% trans 'User group' %}</a></li>
|
2016-08-09 06:42:21 +00:00
|
|
|
</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>
|
2016-08-09 06:42:21 +00:00
|
|
|
<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>
|
2018-10-10 07:37:20 +00:00
|
|
|
<li id="cmd-filter"><a href="{% url 'assets:cmd-filter-list' %}">{% trans 'Command filters' %}</a></li>
|
2016-08-09 06:42:21 +00:00
|
|
|
</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>
|
2016-08-09 06:42:21 +00:00
|
|
|
<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>
|
2016-08-09 06:42:21 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2017-12-15 09:38:46 +00:00
|
|
|
<li id="terminal">
|
2016-11-22 13:08:45 +00:00
|
|
|
<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>
|
2016-11-22 13:08:45 +00:00
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level">
|
2017-12-15 09:38:46 +00:00
|
|
|
<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>
|
2018-10-10 07:37:20 +00:00
|
|
|
<li>
|
|
|
|
<a href="{% url 'terminal:web-sftp' %}" target="_blank">
|
|
|
|
<span class="nav-label">{% trans 'File manager' %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-07-25 03:21:12 +00:00
|
|
|
{% 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>
|
2018-07-25 03:21:12 +00:00
|
|
|
{% endif %}
|
2016-11-22 13:08:45 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2018-07-25 03:21:12 +00:00
|
|
|
{% 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>
|
2018-07-25 03:21:12 +00:00
|
|
|
{% 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-09-03 03:24:25 +00:00
|
|
|
<li id="login-log"><a href="{% url 'audits:login-log-list' %}">{% trans 'Login log' %}</a></li>
|
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-09-03 03:24:25 +00:00
|
|
|
<li id="operate-log"><a href="{% url 'audits:operate-log-list' %}">{% trans 'Operate log' %}</a></li>
|
|
|
|
<li id="password-change-log"><a href="{% url 'audits:password-change-log-list' %}">{% trans 'Password change log' %}</a></li>
|
2018-04-06 03:27:52 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2017-03-24 06:23:51 +00:00
|
|
|
{#<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>#}
|
2018-08-07 08:20:22 +00:00
|
|
|
{% if XPACK_PLUGINS %}
|
2018-08-02 04:36:31 +00:00
|
|
|
<li id="xpack">
|
|
|
|
<a>
|
|
|
|
<i class="fa fa-sitemap" style="width: 14px"></i> <span class="nav-label">{% trans 'XPack' %}</span><span class="fa arrow"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level">
|
|
|
|
{% for plugin in XPACK_PLUGINS %}
|
2018-10-12 12:29:04 +00:00
|
|
|
{% ifequal plugin.name 'cloud'%}
|
|
|
|
<li id="{{ plugin.name }}">
|
|
|
|
<a href="#"><span class="nav-label">{% trans plugin.verbose_name %}</span><span class="fa arrow"></span></a>
|
|
|
|
<ul class="nav nav-third-level">
|
|
|
|
<li id="account"><a href="{% url 'xpack:cloud:account-list' %}">{% trans 'Account list' %}</a></li>
|
2018-10-15 08:05:53 +00:00
|
|
|
<li id="sync-instance-task"><a href="{% url 'xpack:cloud:sync-instance-task-list' %}">{% trans 'Sync instance' %}</a></li>
|
2018-10-12 12:29:04 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li id="{{ plugin.name }}"><a href="{{ plugin.endpoint }}">{% trans plugin.verbose_name %}</a></li>
|
|
|
|
{% endifequal %}
|
2018-08-02 04:36:31 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2018-07-25 03:21:12 +00:00
|
|
|
{% 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>
|
2018-07-25 03:21:12 +00:00
|
|
|
{% endif %}
|
2018-07-13 07:05:46 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
var current_org = '{{ CURRENT_ORG.name }}';
|
|
|
|
console.log(current_org);
|
|
|
|
})
|
|
|
|
</script>
|