Skip to content

Commit

Permalink
Merge pull request #130 from Discord-Dashboard/sidebar-items
Browse files Browse the repository at this point in the history
Sidebar items
  • Loading branch information
iMidnights authored Sep 30, 2024
2 parents b0265b7 + df0c038 commit 644d316
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions views/partials/sidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@
<span class="nav-link-text ms-1"><%- req?.locales?.partials?.sidebar.pp || "Privacy Policy" %></span>
</a>
</li>
<% if(themeConfig?.sidebar?.items?.length > 0) { %>
<% for (const item of themeConfig?.sidebar?.items) { %>
<li class="nav-item">
<a class="nav-link <% if(now == item.id){ %>active"<% } else { %>" href='<%- item.link %>'<% } %>>
<div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
<%- item.icon %>
</div>
<span class="nav-link-text ms-1"><%- req?.locales?.partials?.sidebar?.[item.id] || item.name %></span>
</a>
</li>
<% } %>
<% } %>
<% if(req.session.user && config.ownerIDs?.includes(req.session.user.id)) { %>
<li class="nav-item">
<a class="nav-link <% if(now == 'admin'){ %>active"
Expand Down

0 comments on commit 644d316

Please sign in to comment.