nginx-proxy-manager/frontend/js/app/ui/menu/main.ejs

53 lines
2.6 KiB
Plaintext
Raw Normal View History

2018-06-19 18:48:14 -04:00
<div class="container">
<div class="row align-items-center">
<div class="col-lg order-lg-first">
<ul class="nav nav-tabs border-0 flex-column flex-lg-row">
<li class="nav-item">
2018-07-18 02:55:09 -04:00
<a href="/" class="nav-link"><i class="fe fe-home"></i> <%- i18n('menu', 'dashboard') %></a>
</li>
2018-06-19 18:48:14 -04:00
<li class="nav-item dropdown">
2018-07-18 02:55:09 -04:00
<a href="#" class="nav-link" data-toggle="dropdown"><i class="fe fe-monitor"></i> <%- i18n('menu', 'hosts') %></a>
2018-06-19 18:48:14 -04:00
<div class="dropdown-menu dropdown-menu-arrow">
2018-07-08 21:22:10 -04:00
<% if (canShow('proxy_hosts')) { %>
2018-07-18 02:55:09 -04:00
<a href="/nginx/proxy" class="dropdown-item "><%- i18n('proxy-hosts', 'title') %></a>
2018-07-08 21:22:10 -04:00
<% } %>
<% if (canShow('redirection_hosts')) { %>
2018-07-18 02:55:09 -04:00
<a href="/nginx/redirection" class="dropdown-item "><%- i18n('redirection-hosts', 'title') %></a>
2018-07-08 21:22:10 -04:00
<% } %>
<% if (canShow('streams')) { %>
2018-07-18 02:55:09 -04:00
<a href="/nginx/stream" class="dropdown-item "><%- i18n('streams', 'title') %></a>
2018-07-08 21:22:10 -04:00
<% } %>
<% if (canShow('dead_hosts')) { %>
2018-07-18 02:55:09 -04:00
<a href="/nginx/404" class="dropdown-item "><%- i18n('dead-hosts', 'title') %></a>
2018-07-08 21:22:10 -04:00
<% } %>
2018-06-19 18:48:14 -04:00
</div>
</li>
2018-07-08 21:22:10 -04:00
<% if (canShow('access_lists')) { %>
2018-06-19 18:48:14 -04:00
<li class="nav-item">
2018-08-21 00:10:38 -04:00
<a href="/nginx/access" class="nav-link"><i class="fe fe-lock"></i> <%- i18n('access-lists', 'title') %></a>
</li>
<% } %>
<% if (canShow('certificates')) { %>
<li class="nav-item">
2018-08-21 00:10:38 -04:00
<a href="/nginx/certificates" class="nav-link"><i class="fe fe-shield"></i> <%- i18n('certificates', 'title') %></a>
2018-06-19 18:48:14 -04:00
</li>
2018-07-08 21:22:10 -04:00
<% } %>
<% if (isAdmin()) { %>
2018-06-19 18:48:14 -04:00
<li class="nav-item">
2018-07-18 02:55:09 -04:00
<a href="/users" class="nav-link"><i class="fe fe-users"></i> <%- i18n('users', 'title') %></a>
2018-06-19 18:48:14 -04:00
</li>
<li class="nav-item">
2018-07-18 02:55:09 -04:00
<a href="/audit-log" class="nav-link"><i class="fe fe-book-open"></i> <%- i18n('audit-log', 'title') %></a>
</li>
<li class="nav-item">
<a href="/settings" class="nav-link"><i class="fe fe-settings"></i> <%- i18n('settings', 'title') %></a>
</li>
2018-06-25 02:56:13 -04:00
<% } %>
2018-06-19 18:48:14 -04:00
</ul>
</div>
</div>
</div>