Updated links to be optionall visible for registered users only
This commit is contained in:
parent
f90fdf2588
commit
286c08d231
3 changed files with 31 additions and 10 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue