2016-09-03 16:51:36 +00:00
|
|
|
{% load i18n %}
|
2019-09-12 10:56:26 +00:00
|
|
|
|
|
|
|
{# Index #}
|
|
|
|
{% if request.user.can_admin_or_audit_current_org %}
|
|
|
|
<li id="index">
|
|
|
|
<a href="{% url 'index' %}">
|
|
|
|
<i class="fa fa-dashboard" style="width: 14px"></i> <span class="nav-label">{% trans 'Dashboard' %}</span>
|
|
|
|
<span class="label label-info pull-right"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Users #}
|
|
|
|
{% if request.user.can_admin_current_org %}
|
|
|
|
<li id="users">
|
|
|
|
<a href="#">
|
|
|
|
<i class="fa fa-group" style="width: 14px"></i> <span class="nav-label">{% trans 'Users' %}</span><span class="fa arrow"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level active">
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# User info #}
|
|
|
|
{% if not request.user.can_admin_current_org and request.user.can_audit_current_org %}
|
|
|
|
<li id="users">
|
|
|
|
<a href="{% url 'users:user-profile' %}">
|
|
|
|
<i class="fa fa-user" style="width: 14px"></i> <span class="nav-label">{% trans 'Profile' %}</span><span class="label label-info pull-right"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Assets #}
|
|
|
|
{% if request.user.can_admin_current_org %}
|
|
|
|
<li id="assets">
|
|
|
|
<a>
|
|
|
|
<i class="fa fa-inbox" style="width: 14px"></i> <span class="nav-label">{% trans 'Assets' %}</span><span class="fa arrow"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level">
|
|
|
|
<li id="asset"><a href="{% url 'assets:asset-list' %}">{% trans 'Asset list' %}</a></li>
|
|
|
|
<li id="domain"><a href="{% url 'assets:domain-list' %}">{% trans 'Domain list' %}</a></li>
|
|
|
|
<li id="admin-user"><a href="{% url 'assets:admin-user-list' %}">{% trans 'Admin user' %}</a></li>
|
|
|
|
<li id="system-user"><a href="{% url 'assets:system-user-list' %}">{% trans 'System user' %}</a></li>
|
|
|
|
<li id="label"><a href="{% url 'assets:label-list' %}">{% trans 'Labels' %}</a></li>
|
|
|
|
<li id="cmd-filter"><a href="{% url 'assets:cmd-filter-list' %}">{% trans 'Command filters' %}</a></li>
|
2019-12-16 08:53:29 +00:00
|
|
|
{% if request.user.is_superuser %}
|
|
|
|
<li id="platform"><a href="{% url 'assets:platform-list' %}">{% trans 'Platform list' %}</a></li>
|
|
|
|
{% endif %}
|
2019-09-12 10:56:26 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2019-05-27 08:38:43 +00:00
|
|
|
{% endif %}
|
2019-09-12 10:56:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
{# Applications #}
|
2020-01-06 03:43:37 +00:00
|
|
|
{% if request.user.can_admin_current_org %}
|
2019-09-12 10:56:26 +00:00
|
|
|
<li id="applications">
|
|
|
|
<a>
|
|
|
|
<i class="fa fa-th" style="width: 14px"></i> <span class="nav-label">{% trans 'Applications' %}</span><span class="fa arrow"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level">
|
2020-01-06 03:43:37 +00:00
|
|
|
{% if LICENSE_VALID %}
|
2019-09-12 10:56:26 +00:00
|
|
|
<li id="remote-app"><a href="{% url 'applications:remote-app-list' %}">{% trans 'RemoteApp' %}</a></li>
|
2020-01-06 03:43:37 +00:00
|
|
|
{% endif %}
|
2019-12-19 07:28:17 +00:00
|
|
|
<li id="database-app"><a href="{% url 'applications:database-app-list' %}">{% trans 'DatabaseApp' %}</a></li>
|
2019-09-12 10:56:26 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2018-08-02 04:36:31 +00:00
|
|
|
{% endif %}
|
2019-09-12 10:56:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
{# Perms #}
|
|
|
|
{% if request.user.can_admin_current_org %}
|
|
|
|
<li id="perms">
|
|
|
|
<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">
|
|
|
|
<li id="asset-permission">
|
|
|
|
<a href="{% url 'perms:asset-permission-list' %}">{% trans 'Asset permission' %}</a>
|
|
|
|
</li>
|
|
|
|
{% if LICENSE_VALID %}
|
|
|
|
<li id="remote-app-permission">
|
|
|
|
<a href="{% url 'perms:remote-app-permission-list' %}">{% trans 'RemoteApp' %}</a>
|
|
|
|
</li>
|
2020-01-06 03:43:37 +00:00
|
|
|
{% endif %}
|
2019-12-19 07:28:17 +00:00
|
|
|
<li id="database-app-permission">
|
|
|
|
<a href="{% url 'perms:database-app-permission-list' %}">{% trans 'DatabaseApp' %}</a>
|
|
|
|
</li>
|
2019-09-12 10:56:26 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{# Terminal #}
|
|
|
|
{% if request.user.can_admin_or_audit_current_org %}
|
|
|
|
<li id="terminal">
|
|
|
|
<a>
|
|
|
|
<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>
|
|
|
|
<li id="command"><a href="{% url 'terminal:command-list' %}">{% trans 'Commands' %}</a></li>
|
|
|
|
|
|
|
|
{% if request.user.can_admin_current_org %}
|
|
|
|
<li><a href="{% url 'terminal:web-terminal' %}" target="_blank"><span class="nav-label">{% trans 'Web terminal' %}</span></a></li>
|
|
|
|
<li><a href="{% url 'terminal:web-sftp' %}" target="_blank"><span class="nav-label">{% trans 'File manager' %}</span></a></li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if request.user.is_superuser %}
|
|
|
|
<li id="terminal"><a href="{% url 'terminal:terminal-list' %}">{% trans 'Terminal' %}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{# Ops #}
|
|
|
|
{% if request.user.can_admin_current_org %}
|
|
|
|
<li id="ops">
|
|
|
|
<a>
|
|
|
|
<i class="fa fa-coffee" style="width: 14px"></i> <span class="nav-label">{% trans 'Job Center' %}</span><span class="fa arrow"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level">
|
|
|
|
<li id="task"><a href="{% url 'ops:task-list' %}">{% trans 'Task list' %}</a></li>
|
2020-03-12 08:24:38 +00:00
|
|
|
<li id="command-executions"><a href="{% url 'ops:command-execution-create' %}">{% trans 'Batch command' %}</a></li>
|
2019-09-19 13:21:05 +00:00
|
|
|
{% if request.user.is_superuser %}
|
|
|
|
<li><a href="{% url 'flower-view' path='' %}" target="_blank" >{% trans 'Task monitor' %}</a></li>
|
|
|
|
{% endif %}
|
2019-09-12 10:56:26 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
2019-11-19 07:49:41 +00:00
|
|
|
{% if request.user.can_admin_current_org and LOGIN_CONFIRM_ENABLE and LICENSE_VALID %}
|
2019-11-07 10:06:58 +00:00
|
|
|
<li id="tickets">
|
2019-11-15 10:55:35 +00:00
|
|
|
<a href="{% url 'tickets:ticket-list' %}">
|
|
|
|
<i class="fa fa-check-square-o" style="width: 14px"></i>
|
|
|
|
<span class="nav-label">{% trans 'Tickets' %}</span>
|
2019-10-30 05:18:11 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2019-09-12 10:56:26 +00:00
|
|
|
|
|
|
|
{# Audits #}
|
|
|
|
{% if request.user.can_admin_or_audit_current_org %}
|
|
|
|
<li id="audits">
|
|
|
|
<a>
|
|
|
|
<i class="fa fa-history" style="width: 14px"></i> <span class="nav-label">{% trans 'Audits' %}</span><span class="fa arrow"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav nav-second-level">
|
|
|
|
<li id="login-log"><a href="{% url 'audits:login-log-list' %}">{% trans 'Login log' %}</a></li>
|
|
|
|
<li id="ftp-log"><a href="{% url 'audits:ftp-log-list' %}">{% trans 'FTP log' %}</a></li>
|
|
|
|
<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>
|
|
|
|
<li id="command-execution-log"><a href="{% url 'audits:command-execution-log-list' %}">{% trans 'Batch command' %}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{# X-Pack #}
|
|
|
|
{% if request.user.can_admin_current_org and XPACK_PLUGINS %}
|
|
|
|
<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 %}
|
|
|
|
{% 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>
|
|
|
|
<li id="sync-instance-task"><a href="{% url 'xpack:cloud:sync-instance-task-list' %}">{% trans 'Sync instance' %}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li id="{{ plugin.name }}"><a href="{{ plugin.endpoint }}">{% trans plugin.verbose_name %}</a></li>
|
|
|
|
{% endifequal %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Settings #}
|
2018-07-25 03:21:12 +00:00
|
|
|
{% if request.user.is_superuser %}
|
2019-09-12 10:56:26 +00:00
|
|
|
<li id="settings">
|
|
|
|
<a href="{% url 'settings:basic-setting' %}">
|
|
|
|
<i class="fa fa-gears"></i> <span class="nav-label">{% trans 'Settings' %}</span><span class="label label-info pull-right"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-07-25 03:21:12 +00:00
|
|
|
{% endif %}
|
2018-07-13 07:05:46 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
})
|
2019-10-30 05:18:11 +00:00
|
|
|
</script>
|