mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-24 06:49:23 -05:00
Add check for empty chan category in featured chan
This commit is contained in:
parent
55762f0c2c
commit
48a518b252
@ -73,16 +73,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<h3 class="pure-u-1">
|
<h3 class="pure-u-1">
|
||||||
<%= translate(locale, "This channel doesn't feature any other channels.")%>
|
<%= translate(locale, "This channel doesn't feature any other channels.")%>
|
||||||
</h3>
|
</h3>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<!-- #<div class="channel-section pure-u-1 pure-u-md-1-4 pure-u-lg-1-6"> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% if !featured_channel_categories.empty? %>
|
||||||
<div class="pure-g h-box">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-1 pure-u-lg-1-5">
|
<div class="pure-u-1 pure-u-lg-1-5">
|
||||||
<% if previous_continuation %>
|
<% if previous_continuation %>
|
||||||
@ -106,10 +106,10 @@
|
|||||||
<% title = featured_channel_categories[0].title %>
|
<% title = featured_channel_categories[0].title %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<a href="/channel/<%=channel.ucid%>/channels/<%=category_param%>?continuation=<%=HTML.escape(next_cont_token)%>&offset=<%=offset.not_nil!+1%>&title=<%=HTML.escape(title)%><%=additional_url_param%>">
|
<a href="/channel/<%=channel.ucid%>/channels/<%=category_param%>?continuation=<%=HTML.escape(next_cont_token)%>&offset=<%=offset.not_nil!+1%>&title=<%=HTML.escape(title)%><%=additional_url_param%>">
|
||||||
<%= translate(locale, "Next page") %>
|
<%= translate(locale, "Next page") %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user