Skip to content

Commit

Permalink
Refactor punishment and audit to remove profile scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
benrobson committed Aug 23, 2024
1 parent 21ee43b commit de5ab0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/modules/profile/profile.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
<li class="nav-item" role="presentation">
<a class="nav-link active" id="about-tab" data-bs-toggle="tab" href="#about" role="tab" aria-controls="about" aria-selected="true">About Me</a>
</li>
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.punishments')) { %>
<% if (contextPermissions && contextPermissions.includes('zander.web.punishments')) { %>
<li class="nav-item" role="presentation">
<a class="nav-link" id="punishments-tab" data-bs-toggle="tab" href="#punishments" role="tab" aria-controls="punishments" aria-selected="false">Punishments <i class="fa-solid fa-shield" style="color: red;"></i></a>
</li>
<% } %>
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.audit')) { %>
<% if (contextPermissions && contextPermissions.includes('zander.web.audit')) { %>
<li class="nav-item" role="presentation">
<a class="nav-link" id="audit-tab" data-bs-toggle="tab" href="#audit" role="tab" aria-controls="audit" aria-selected="false">Audit <i class="fa-solid fa-shield" style="color: red;"></i></a>
</li>
Expand All @@ -56,13 +56,13 @@
<% } %>
</div>
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.punishments')) { %>
<% if (contextPermissions && contextPermissions.includes('zander.web.punishments')) { %>
<div class="tab-pane fade mt-2" id="punishments" role="tabpanel" aria-labelledby="punishments-tab">
<!-- Punishments content goes here -->
<div class="alert alert-warning" role="alert">This punishment feature is in development, coming soon!</div>
</div>
<% } %>
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.audit')) { %>
<% if (contextPermissions && contextPermissions.includes('zander.web.audit')) { %>
<div class="tab-pane fade mt-2" id="audit" role="tabpanel" aria-labelledby="audit-tab">
<h3>Minecraft</h3>
<table class="table">
Expand Down

0 comments on commit de5ab0e

Please sign in to comment.