This commit is contained in:
2025-03-11 19:07:16 -04:00
parent 84290f9c46
commit 74808f3fb2
8 changed files with 46 additions and 122 deletions

View File

@@ -1,26 +1,28 @@
<!-- views/partials/nav.ejs -->
<div class="nav">
Falls on Fire<br>
<div class="nav-header">
Falls on Fire
</div>
<div class="nav-items">
<a href="/buy">Buy Tickets</a><br>
<%if (typeof username!='undefined' && username) {%>
<a href="/mytickets">View My Tickets</a><br>
<%}%>
<%if (typeof superuser!='undefined' && superuser) {%>
<a href="/camps">View Camps (Admin)</a><br>
<a href="/settings">Settings (Admin)</a><br>
<%}%>
<%if (typeof username!='undefined' && username) {%>
<a href="/changepassword">Change Password</a><br>
<a href="/logout">Log Out</a><br>
<%} else {%>
<a href="/create">Create Account</a><br>
<a href="/login">Log In</a><br>
<%}%>
<%if (typeof username!='undefined' && username) {%>
<a href="/mytickets">View My Tickets</a><br>
<%}%>
<%if (typeof superuser!='undefined' && superuser) {%>
<a href="/camps">View Camps (Admin)</a><br>
<a href="/settings">Settings (Admin)</a><br>
<%}%>
<%if (typeof username!='undefined' && username) {%>
<a href="/changepassword">Change Password</a><br>
<a href="/logout">Log Out</a><br>
<%} else {%>
<a href="/create">Create Account</a><br>
<a href="/login">Log In</a><br>
<%}%>
</div>
<div class="message" id="message">
<% if (typeof commonData.message !== 'undefined') { %>
<p><%= commonData.message %></p>
<% } %>
<% if (typeof commonData.message !== 'undefined') { %>
<p><%= commonData.message %></p>
<% } %>
</div>
<% if (commonData.error) { %>
<div id="errorModal">