Typo and formatting fix

(cherry picked from commit 9109efe5cd)
This commit is contained in:
syeopite 2021-06-25 19:51:36 -07:00
parent beff17710e
commit 7460528121
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82
2 changed files with 102 additions and 76 deletions

View file

@ -64,27 +64,40 @@
</div>
<div class="h-box" id="content-navigation">
<div class="">
<!-- TODO Refactor this! -->
<div class="pure-menu pure-menu-horizontal">
<ul class="pure-menu-list">
<% if !channel.auto_generated %>
<% if content_type == 0 %>
<!-- <% if content_type == 0 %>
<li class="pure-menu-item pure-menu-selected">
<a href="/channel/<%= channel.ucid %>" class="pure-menu-link">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
<b> <%= translate(locale, "Home") %> </b>
</a>
</li>
<% else %>
<li class="pure-menu-item">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
<%= translate(locale, "Home") %>
</a>
</li>
<% end -%> -->
<% if !channel.auto_generated %>
<% if content_type == 1 %>
<li class="pure-menu-item pure-menu-selected">
<a href="/channel/<%= channel.ucid %>/videos" class="pure-menu-link">
<b><%= translate(locale, "Videos") %></b>
</a>
</li>
<% else %>
<li class="pure-menu-item pure-menu">
<a href="/channel/<%= channel.ucid %>" class="pure-menu-link">
<a href="/channel/<%= channel.ucid %>/videos" class="pure-menu-link">
<%= translate(locale, "Videos") %>
</a>
</li>
<% end %>
<% end %>
<% end -%>
<% if content_type == 1 || channel.auto_generated %>
<% if content_type == 2 %>
<li class="pure-menu-item pure-menu-selected">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/playlists">
<b> <%= translate(locale, "Playlists") %> </b>
@ -96,10 +109,10 @@
<%= translate(locale, "Playlists") %>
</a>
</li>
<% end %>
<% end -%>
<% if channel.tabs.includes? "community" %>
<% if content_type == 2 %>
<% if channel.tabs.includes?("community") %>
<% if content_type == 3 %>
<li class="pure-menu-item pure-menu-selected">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/community">
<b> <%= translate(locale, "Community") %> </b>
@ -112,9 +125,23 @@
</a>
</li>
<% end %>
<% end %>
<% end -%>
<% if content_type == 4 %>
<li class="pure-menu-item pure-menu-selected">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/channels">
<b> <%= translate(locale, "Channels") %> </b>
</a>
</li>
<% else %>
<li class="pure-menu-item">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/channels">
<%= translate(locale, "Channels") %>
</a>
</li>
<% end -%>
<% if content_type == 5 %>
<li class="pure-menu-item pure-menu-selected">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>/about">
<b> <%= translate(locale, "About") %> </b>
@ -126,7 +153,7 @@
<%= translate(locale, "About") %>
</a>
</li>
<% end %>
<% end -%>
<% if !channel.auto_generated %>
<li class="pure-menu-item" style="margin: 0 0 0 0.5em">
@ -144,7 +171,6 @@
</ul>
</div>
</div>
</div>
<div class="h-box">
<% if content_type == 1 || content_type == 2 %>

View file

@ -13,7 +13,7 @@
<div class="h-box" id="content-navigation">
<div class="pure-menu pure-menu-horizontal">
<ui class="pure-menu-list">
<ul class="pure-menu-list">
<% {"Default", "Music", "Gaming", "Movies"}.each do |option| %>
<% if trending_type == option %>
<li class="pure-menu-item pure-menu-selected">
@ -28,7 +28,7 @@
</li>
<% end %>
<% end %>
</ui>
</ul>
</div>
</div>