2020-08-12 00:36:09 +00:00
|
|
|
<!-- partial -->
|
|
|
|
<div class="container-fluid page-body-wrapper">
|
|
|
|
<!-- partial:partials/_sidebar.html -->
|
|
|
|
<nav class="sidebar sidebar-offcanvas" id="sidebar">
|
|
|
|
<ul class="nav">
|
|
|
|
|
2021-09-29 02:25:47 +00:00
|
|
|
<li class="nav-item nav-category" style="margin-top:10px;">{{ translate('sidebar', 'navigation', data['lang']) }}</li>
|
2020-08-12 00:36:09 +00:00
|
|
|
|
|
|
|
<li class="nav-item">
|
2020-08-17 02:47:53 +00:00
|
|
|
<a class="nav-link" href="/panel/dashboard">
|
|
|
|
<i class="fas fa-chart-network"></i>
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="menu-title">{{ translate('sidebar', 'dashboard', data['lang']) }}</span>
|
2020-08-12 00:36:09 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2020-08-17 02:47:53 +00:00
|
|
|
|
2020-08-12 00:36:09 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" data-toggle="collapse" href="#page-layouts" aria-expanded="false" aria-controls="page-layouts">
|
2020-08-24 23:11:17 +00:00
|
|
|
<i class="fas fa-server"></i>
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="menu-title">{{ translate('sidebar', 'servers', data['lang']) }}</span>
|
2020-08-12 00:36:09 +00:00
|
|
|
<i class="menu-arrow"></i>
|
|
|
|
</a>
|
|
|
|
<div class="collapse" id="page-layouts">
|
|
|
|
<ul class="nav flex-column sub-menu">
|
2021-08-24 21:07:00 +00:00
|
|
|
{% if data['crafty_permissions']['Server_Creation'] in data['user_crafty_permissions'] %}
|
|
|
|
<li class="nav-item">
|
2021-09-29 02:25:47 +00:00
|
|
|
<a class="nav-link" href="/server/step1"><i class="fas fa-plus-circle"></i> {{ translate('sidebar', 'newServer', data['lang']) }}</a>
|
2020-08-28 03:21:55 +00:00
|
|
|
</li>
|
2021-08-24 21:07:00 +00:00
|
|
|
{% end %}
|
2020-08-24 17:08:17 +00:00
|
|
|
{% for s in data['menu_servers'] %}
|
|
|
|
<li class="nav-item">
|
2020-08-28 03:21:55 +00:00
|
|
|
<a class="nav-link" href="/panel/server_detail?id={{s['server_id']}}"><i class="fas fa-server"></i> {{s['server_name']}}</a>
|
2020-08-24 17:08:17 +00:00
|
|
|
</li>
|
|
|
|
{% end %}
|
|
|
|
|
2020-08-12 00:36:09 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2020-09-22 22:23:14 +00:00
|
|
|
<a class="nav-link" href="https://gitlab.com/crafty-controller/crafty-web/-/wikis/home" target="_blank">
|
2020-08-24 23:11:17 +00:00
|
|
|
<i class="fas fa-book"></i>
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="menu-title">{{ translate('sidebar', 'documentation', data['lang']) }}</span>
|
2020-08-12 00:36:09 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2020-09-22 22:23:14 +00:00
|
|
|
<a class="nav-link" href="https://discord.gg/9VJPhCE" target="_blank">
|
2020-08-24 23:11:17 +00:00
|
|
|
<i class="fab fa-discord"></i>
|
|
|
|
<span class="menu-title">Discord</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2020-08-28 03:21:55 +00:00
|
|
|
<a class="nav-link" href="/panel/credits">
|
2020-08-24 23:11:17 +00:00
|
|
|
<i class="fas fa-heart"></i>
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="menu-title">{{ translate('sidebar', 'credits', data['lang']) }}</span>
|
2020-08-24 23:11:17 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2020-08-28 18:38:42 +00:00
|
|
|
{% if data['show_contribute'] %}
|
2020-08-24 23:11:17 +00:00
|
|
|
<li class="nav-item">
|
2020-08-28 18:38:42 +00:00
|
|
|
<a class="nav-link" href="/panel/contribute">
|
2020-08-24 23:11:17 +00:00
|
|
|
<i class="fas fa-donate"></i>
|
2021-09-29 02:25:47 +00:00
|
|
|
<span class="menu-title">{{ translate('sidebar', 'contribute', data['lang']) }}</span>
|
2020-08-12 00:36:09 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2020-08-28 18:38:42 +00:00
|
|
|
{% end %}
|
2020-08-12 00:36:09 +00:00
|
|
|
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<!-- partial -->
|