2022-01-04 02:18:28 +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">
|
|
|
|
<div class="pull-left image">
|
|
|
|
<img src="<%= user.displayAvatarURL %>" class="img-circle" alt="User Image">
|
|
|
|
</div>
|
|
|
|
<div class="pull-left info">
|
2022-04-03 12:54:55 +05:00
|
|
|
<p><%= user.tag %></p>
|
2022-04-03 12:47:54 +05:00
|
|
|
<!-- <a href="#"><i class="fa fa-circle text-<%=// user.status === "dnd" ? "danger" : user.status === "idle" ? "warning" : user.status === "online" ? "success" : ""%>"></i>
|
|
|
|
<%=// translate("common:STATUS_" + user.status.toUpperCase()) %>
|
|
|
|
</a> -->
|
2022-01-04 02:18:28 +05:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-14 00:24:48 +05:00
|
|
|
<!-- sidebar menu: style can be found in sidebar.less -->
|
2022-01-04 02:18:28 +05:00
|
|
|
<ul class="sidebar-menu" data-widget="tree">
|
|
|
|
<li class="header"><%= translate("dashboard:SERVERS_MANAGEMENT").toUpperCase() %></li>
|
|
|
|
<li class="treeview menu-open">
|
|
|
|
<li><a href="/selector"><i class="fa fa-home"></i> <span><%= translate("dashboard:SELECTOR") %></span></a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="treeview">
|
|
|
|
<a href="/manage/">
|
|
|
|
<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>
|
|
|
|
</a>
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (user.displayedGuilds) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<ul class="treeview-menu">
|
|
|
|
<% user.displayedGuilds.forEach((guild) => { %>
|
|
|
|
<li><a href="<%= guild.settingsUrl %>"><i
|
2022-01-12 20:31:47 +05:00
|
|
|
class="fa fa-circle-o text-<%= guild.owner ? "green" : "grey" %>"></i>
|
2022-01-04 02:18:28 +05:00
|
|
|
<%= guild.name %></a></li>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
<% } %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="sidebar-menu" data-widget="tree">
|
|
|
|
<li class="header"><%= translate("common:PROFILE").toUpperCase() %></li>
|
|
|
|
<li class="treeview menu-open">
|
2022-01-12 21:39:34 +05:00
|
|
|
<li><a href="/docs"><i class="fa fa-file"></i> <span>Документация</span></a></li>
|
|
|
|
<li><a href="/profile"><i class="fa fa-user"></i> <span><%= translate("common:PROFILE") %></span></a></li>
|
2022-01-04 02:18:28 +05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
<!-- /.sidebar -->
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
// get current URL path and assign "active" class
|
|
|
|
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");
|
|
|
|
$(`.sidebar-menu > li > a[href="/${window.location.pathname.split("/")[1]}/"]`).parent().addClass(
|
2022-01-05 00:24:57 +05:00
|
|
|
"active");
|
2022-01-04 02:18:28 +05:00
|
|
|
});
|
|
|
|
</script>
|