frontend: remove paging on channel videos

This commit is contained in:
Samantaz Fox
2022-12-03 22:39:24 +01:00
parent fbcce57ce2
commit 9588fcb5d1
2 changed files with 4 additions and 19 deletions

View File

@@ -90,7 +90,7 @@
<% if sort_by == sort %>
<b><%= translate(locale, sort) %></b>
<% else %>
<a href="/channel/<%= ucid %>?page=<%= page %>&sort_by=<%= sort %>">
<a href="/channel/<%= ucid %>?sort_by=<%= sort %>">
<%= translate(locale, sort) %>
</a>
<% end %>
@@ -111,19 +111,7 @@
</div>
<div class="pure-g h-box">
<div class="pure-u-1 pure-u-lg-1-5">
<% if page > 1 %>
<a href="/channel/<%= ucid %>?page=<%= page - 1 %><% if sort_by != "newest" %>&sort_by=<%= URI.encode_www_form(sort_by) %><% end %>">
<%= translate(locale, "Previous page") %>
</a>
<% end %>
</div>
<div class="pure-u-1 pure-u-lg-1-5"></div>
<div class="pure-u-1 pure-u-lg-3-5"></div>
<div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
<% if count == 60 %>
<a href="/channel/<%= ucid %>?page=<%= page + 1 %><% if sort_by != "newest" %>&sort_by=<%= URI.encode_www_form(sort_by) %><% end %>">
<%= translate(locale, "Next page") %>
</a>
<% end %>
</div>
<div class="pure-u-1 pure-u-lg-1-5"></div>
</div>