Started work on new navbar, just needs user count
This commit is contained in:
parent
17e256e038
commit
b9bfa5271e
3 changed files with 45 additions and 11 deletions
|
|
@ -17,27 +17,34 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|||
<span class="navbar-item">
|
||||
<%#<a class="navbar-item" href="/" id="instance-title">%><%#= instance %><%#</a><p class="navbar-item"> - <a class="navbar-item" href="/about">about</a></p>%>
|
||||
<a class="navbar-item" href="/" id="instance-title"><%= instance %></a>
|
||||
<p class="navbar-item" id="right-controls">
|
||||
<span class="navbar-item-seperator first"> - </span><a class="navbar-item first" href="javascript:">Channel Guide</a>
|
||||
<% for(link of Object.keys(links)){ %>
|
||||
<span class="navbar-item-seperator"> - </span><a target="_blank" class="navbar-item" href="<%- links[link] %>"><%= link %></a>
|
||||
<% } %>
|
||||
</p>
|
||||
</span>
|
||||
<span class="navbar-item" id="right-controls">
|
||||
<% if(user){ %>
|
||||
<p class="navbar-item">Welcome, <a class="navbar-item" id="username" href="/profile"><%= user.user %></a> - <% if(user.rank == "admin"){ %>
|
||||
<a href="/adminPanel" title="Admin Panel" class="bi bi-server navbar-item"></a> -
|
||||
<p class="navbar-item">Welcome, <a class="navbar-item" id="username" href="/profile"><%= user.user %></a> -
|
||||
<% if(user.rank == "mod" || user.rank == "admin"){ %>
|
||||
<a target="_blank" href="/adminPanel" title="Admin Panel" class="bi bi-server navbar-item"></a> -
|
||||
<% } %>
|
||||
|
||||
<% for(link of Object.keys(links)){ %>
|
||||
<a target="_blank" class="navbar-item" href="<%- links[link] %>"><%= link %></a> -
|
||||
<% } %>
|
||||
|
||||
<a class="navbar-item" href="javascript:" id="logout-button">Logout</a></p>
|
||||
<span id="channel-settings-button-span" class="navbar-item" style="display: none;">
|
||||
<a target="_blank" href="" title="Channel Settings" class="bi bi-projector-fill navbar-item"></a>
|
||||
-
|
||||
</span>
|
||||
|
||||
<a class="navbar-item" href="javascript:" id="logout-button">Logout</a>
|
||||
</p>
|
||||
<% }else{ %>
|
||||
<p class="navbar-item">Remember Me:</p>
|
||||
<input class="navbar-item login-prompt" id="remember-me" type="checkbox">
|
||||
<input class="navbar-item login-prompt" id="username-prompt" placeholder="username">
|
||||
<input class="navbar-item login-prompt" id="password-prompt" placeholder="password" type="password">
|
||||
<p class="navbar-item"><a class="navbar-item" href="javascript:" id="login-button">Login</a> - <a class="navbar-item" href="/passwordReset">Forgot Password</a> - <a class="navbar-item" href="/register">Register</a>
|
||||
<% for(link of Object.keys(links)){ %>
|
||||
- <a target="_blank" class="navbar-item" href="<%- links[link] %>"><%= link %></a>
|
||||
<% } %></p>
|
||||
</p>
|
||||
<% } %>
|
||||
</span>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue