Updated links to be optionall visible for registered users only

This commit is contained in:
rainbow napkin 2026-11-07 09:18:05 -05:00
parent f90fdf2588
commit 286c08d231
3 changed files with 31 additions and 10 deletions

View file

@ -20,10 +20,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
<p class="navbar-item" id="left-controls">
<span class="navbar-item-seperator first"> - </span>
<a class="navbar-item first" href="javascript:">Channel Guide</a>
<% for(link of Object.keys(links)){ %>
-
<a target="_blank" class="navbar-item" href="<%- links[link] %>"><%= link %></a>
<% } %>
<% for(link of Object.keys(links)){
const linkObj = links[link];
if(!linkObj.registeredOnly || user != null){ %>
-
<a target="_blank" class="navbar-item" href="<%- links[link] %>"><%= link %></a>
<% }
} %>
</p>
</span>
<span class="navbar-item" id="right-navbar-cluster">