channel: include first and last pages when sorting by new

Last page as a substitute for sorting by oldest since sorting by
oldest doesn't allow arbitrary page numbers

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor
2020-12-17 12:27:38 -08:00
committed by Jesús
parent e27650b457
commit cf7aa41893
2 changed files with 12 additions and 3 deletions

View File

@@ -107,7 +107,7 @@
<footer class="pagination-container">
{% if current_tab == 'videos' %}
<nav class="pagination-list">
{{ common_elements.page_buttons(number_of_pages, channel_url + '/' + current_tab, parameters_dictionary) }}
{{ common_elements.page_buttons(number_of_pages, channel_url + '/' + current_tab, parameters_dictionary, include_ends=(current_sort.__str__() == '3')) }}
</nav>
{% elif current_tab == 'search' %}
<nav class="next-previous-button-row">