|
|
@ -64,113 +64,111 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="h-box" id="content-navigation">
|
|
|
|
<div class="h-box" id="content-navigation">
|
|
|
|
<div class="">
|
|
|
|
<!-- TODO Refactor this! -->
|
|
|
|
<!-- TODO Refactor this! -->
|
|
|
|
<div class="pure-menu pure-menu-horizontal">
|
|
|
|
<div class="pure-menu pure-menu-horizontal">
|
|
|
|
<ul class="pure-menu-list">
|
|
|
|
<ul class="pure-menu-list">
|
|
|
|
<% if content_type == 0 %>
|
|
|
|
<% if content_type == 0 %>
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
|
|
|
|
<b> <%= translate(locale, "Home") %> </b>
|
|
|
|
<b> <%= translate(locale, "Home") %> </b>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
|
|
|
|
<%= translate(locale, "Home") %>
|
|
|
|
<%= translate(locale, "Home") %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end -%>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% if !channel.auto_generated %>
|
|
|
|
<% if !channel.auto_generated %>
|
|
|
|
<% if content_type == 1 %>
|
|
|
|
<% if content_type == 1 %>
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<a href="/channel/<%= channel.ucid %>/videos" class="pure-menu-link">
|
|
|
|
<a href="/channel/<%= channel.ucid %>/videos" class="pure-menu-link">
|
|
|
|
<b><%= translate(locale, "Videos") %></b>
|
|
|
|
<b><%= translate(locale, "Videos") %></b>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li class="pure-menu-item pure-menu">
|
|
|
|
<li class="pure-menu-item pure-menu">
|
|
|
|
<a href="/channel/<%= channel.ucid %>/videos" class="pure-menu-link">
|
|
|
|
<a href="/channel/<%= channel.ucid %>/videos" class="pure-menu-link">
|
|
|
|
<%= translate(locale, "Videos") %>
|
|
|
|
<%= translate(locale, "Videos") %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end -%>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if content_type == 2 %>
|
|
|
|
<% if content_type == 2 %>
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/playlists">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/playlists">
|
|
|
|
<b> <%= translate(locale, "Playlists") %> </b>
|
|
|
|
<b> <%= translate(locale, "Playlists") %> </b>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/playlists">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/playlists">
|
|
|
|
<%= translate(locale, "Playlists") %>
|
|
|
|
<%= translate(locale, "Playlists") %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
|
|
<% if channel.tabs.includes?("community") %>
|
|
|
|
<% if channel.tabs.includes?("community") %>
|
|
|
|
<% if content_type == 3 %>
|
|
|
|
<% if content_type == 3 %>
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/community">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/community">
|
|
|
|
<b> <%= translate(locale, "Community") %> </b>
|
|
|
|
<b> <%= translate(locale, "Community") %> </b>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/community">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/community">
|
|
|
|
<%= translate(locale, "Community") %>
|
|
|
|
<%= translate(locale, "Community") %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
|
|
<% if content_type == 4 %>
|
|
|
|
<% if content_type == 4 %>
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/channels">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/channels">
|
|
|
|
<b> <%= translate(locale, "Channels") %> </b>
|
|
|
|
<b> <%= translate(locale, "Channels") %> </b>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/channels">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/channels">
|
|
|
|
<%= translate(locale, "Channels") %>
|
|
|
|
<%= translate(locale, "Channels") %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
|
|
<% if content_type == 5 %>
|
|
|
|
<% if content_type == 5 %>
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<li class="pure-menu-item pure-menu-selected">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/about">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/about">
|
|
|
|
<b> <%= translate(locale, "About") %> </b>
|
|
|
|
<b> <%= translate(locale, "About") %> </b>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<li class="pure-menu-item">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/about">
|
|
|
|
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/about">
|
|
|
|
<%= translate(locale, "About") %>
|
|
|
|
<%= translate(locale, "About") %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
|
|
<% if !channel.auto_generated %>
|
|
|
|
<% if !channel.auto_generated %>
|
|
|
|
<li class="pure-menu-item" style="margin: 0 0 0 0.5em">
|
|
|
|
<li class="pure-menu-item" style="margin: 0 0 0 0.5em">
|
|
|
|
<div class="searchbar">
|
|
|
|
<div class="searchbar">
|
|
|
|
<form class="pure-form" action="/search" method="get">
|
|
|
|
<form class="pure-form" action="/search" method="get">
|
|
|
|
<fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<button class="search-button" style="display: inline;"><i class="icon ion-md-search"></i></button>
|
|
|
|
<button class="search-button" style="display: inline;"><i class="icon ion-md-search"></i></button>
|
|
|
|
<input type="search" name="q" placeholder="<%= translate(locale, "search") %>" style="display: inline;" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
|
|
|
<input type="search" name="q" placeholder="<%= translate(locale, "search") %>" style="display: inline;" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
|
|
|
<input type="hidden" name="channel" value="<%= channel.ucid %>">
|
|
|
|
<input type="hidden" name="channel" value="<%= channel.ucid %>">
|
|
|
|
</fieldset>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|