diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-03-05 23:27:31 -0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-03-15 22:22:15 -0500 |
commit | e549b5f67c4beff421a2b2b36f3b5031bfe8ed88 (patch) | |
tree | a4377a1e3817b6d466730d2a5059ffb3dc0688d5 /youtube/templates/channel.html | |
parent | b2c1066734b59f69666a3cfc0f82ed9718685d4b (diff) | |
download | yt-local-e549b5f67c4beff421a2b2b36f3b5031bfe8ed88.tar.lz yt-local-e549b5f67c4beff421a2b2b36f3b5031bfe8ed88.tar.xz yt-local-e549b5f67c4beff421a2b2b36f3b5031bfe8ed88.zip |
Channel: Allow going to next pages of playlists page
Uses previous and next buttons. Now can view more than just
first page of playlists page
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/templates/channel.html')
-rw-r--r-- | youtube/templates/channel.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html index 252d017..294f1df 100644 --- a/youtube/templates/channel.html +++ b/youtube/templates/channel.html @@ -78,6 +78,11 @@ <div id="number-of-results">{{ number_of_videos }} videos</div> {% elif current_tab == 'playlists' %} {% set sorts = [('2', 'oldest'), ('3', 'newest'), ('4', 'last video added')] %} + {% if items %} + <h2 class="page-number">Page {{ page_number }}</h2> + {% else %} + <h2 class="page-number">No items</h2> + {% endif %} {% elif current_tab == 'search' %} {% if items %} <h2 class="page-number">Page {{ page_number }}</h2> @@ -113,7 +118,7 @@ <nav class="pagination-list"> {{ common_elements.page_buttons(number_of_pages, channel_url + '/' + current_tab, parameters_dictionary, include_ends=(current_sort.__str__() == '3')) }} </nav> - {% elif current_tab == 'search' %} + {% elif current_tab == 'playlists' or current_tab == 'search' %} <nav class="next-previous-button-row"> {{ common_elements.next_previous_buttons(is_last_page, channel_url + '/' + current_tab, parameters_dictionary) }} </nav> |