2021-12-10 21:39:54 +05:00
|
|
|
<!-- Left side column. contains the logo and sidebar -->
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
<!-- sidebar: style can be found in sidebar.less -->
|
|
|
|
<section class="sidebar">
|
|
|
|
<!-- Sidebar user panel -->
|
|
|
|
<div class="user-panel">
|
2021-12-16 23:42:58 +05:00
|
|
|
<div class="pull-left image">
|
|
|
|
<img src="<%= user.displayAvatarURL %>" class="img-circle" alt="User Image">
|
|
|
|
</div>
|
|
|
|
<div class="pull-left info">
|
|
|
|
<p><%= user.username %></p>
|
|
|
|
</div>
|
2021-12-10 21:39:54 +05:00
|
|
|
</div>
|
|
|
|
<!-- search form -->
|
2021-12-15 21:32:24 +05:00
|
|
|
<!--
|
2021-12-10 21:39:54 +05:00
|
|
|
<form action="/selector" method="get" class="sidebar-form">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" placeholder="<%= translate("dashboard:SEARCH") %>">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" id="search-btn" class="btn btn-flat">
|
|
|
|
<i class="fa fa-search"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
2021-12-15 21:32:24 +05:00
|
|
|
-->
|
2021-12-10 21:39:54 +05:00
|
|
|
<!-- /.search form -->
|
|
|
|
<!-- sidebar menu: : style can be found in sidebar.less -->
|
|
|
|
<ul class="sidebar-menu" data-widget="tree">
|
|
|
|
<li class="header"><%= translate("dashboard:SERVERS_MANAGEMENT").toUpperCase() %></li>
|
|
|
|
<li class="treeview menu-open">
|
2021-12-16 23:42:58 +05:00
|
|
|
<li><a href="/selector"><i class="fa fa-home"></i> <span><%= translate("dashboard:SELECTOR") %></span></a>
|
|
|
|
</li>
|
2021-12-10 21:39:54 +05:00
|
|
|
</li>
|
|
|
|
<li class="treeview">
|
|
|
|
<a href="/manage/">
|
2021-12-16 23:42:58 +05:00
|
|
|
<i class="fa fa-server"></i>
|
|
|
|
<span><%= translate("dashboard:SERVERS_LIST") %></span>
|
|
|
|
<span class="pull-right-container">
|
|
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
|
|
</span>
|
2021-12-10 21:39:54 +05:00
|
|
|
</a>
|
2021-12-16 23:42:58 +05:00
|
|
|
<% if(user.displayedGuilds) { %>
|
|
|
|
<ul class="treeview-menu">
|
|
|
|
<% user.displayedGuilds.forEach((guild) => { %>
|
|
|
|
<li><a href="<%= guild.settingsUrl %>"><i
|
2021-12-24 20:52:27 +05:00
|
|
|
class="fa fa-circle-o text-<%= guild.owner ? "blue" : "grey" %>"></i>
|
2021-12-16 23:42:58 +05:00
|
|
|
<%= guild.name %></a></li>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
2021-12-10 21:39:54 +05:00
|
|
|
<% } %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="sidebar-menu" data-widget="tree">
|
|
|
|
<li class="header"><%= translate("common:PROFILE").toUpperCase() %></li>
|
|
|
|
<li class="treeview menu-open">
|
2021-12-25 00:37:51 +05:00
|
|
|
<li><a href="/docs"><i class="fa fa-wrench"></i> <span>Документация</span></a></li>
|
2021-12-16 23:42:58 +05:00
|
|
|
<li><a href="/settings"><i class="fa fa-gear"></i> <span><%= translate("common:SETTINGS") %></span></a></li>
|
2021-12-10 21:39:54 +05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
<!-- /.sidebar -->
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
<script>
|
2021-12-16 23:42:58 +05:00
|
|
|
$(document).ready(function () {
|
2021-12-24 20:52:27 +05:00
|
|
|
// get current URL path and assign "active" class
|
2021-12-10 21:39:54 +05:00
|
|
|
let pathname = window.location.pathname;
|
|
|
|
$(`.sidebar-menu > li > a[href="${pathname}"]`).parent().addClass("active");
|
|
|
|
$(`.sidebar-menu > li > ul > li > a[href="${window.location.pathname}"]`).parent().addClass("active");
|
2021-12-16 23:42:58 +05:00
|
|
|
$(`.sidebar-menu > li > a[href="/${window.location.pathname.split("/")[1]}/"]`).parent().addClass(
|
2022-01-04 00:35:11 +05:00
|
|
|
"active");
|
2021-12-10 21:39:54 +05:00
|
|
|
});
|
|
|
|
</script>
|