diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-08-12 01:14:11 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-08-12 01:14:11 -0700 |
commit | dd4841901f676fff619d9cf794c37a35e202bda6 (patch) | |
tree | bffbb95ce4f33be24ae3e4ce0f0dc69c39ee6cbd /youtube/templates | |
parent | c55955f42d5fff886892f5d0093ee2725a911b02 (diff) | |
download | yt-local-dd4841901f676fff619d9cf794c37a35e202bda6.tar.lz yt-local-dd4841901f676fff619d9cf794c37a35e202bda6.tar.xz yt-local-dd4841901f676fff619d9cf794c37a35e202bda6.zip |
Add pagination to subscriptions page
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/subscriptions.html | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/youtube/templates/subscriptions.html b/youtube/templates/subscriptions.html index 442bd88..b4b87f0 100644 --- a/youtube/templates/subscriptions.html +++ b/youtube/templates/subscriptions.html @@ -7,9 +7,12 @@ display:flex; flex-direction: row; } - .item-grid{ + .video-section{ flex-grow: 1; } + .video-section .page-button-row{ + justify-content: center; + } .subscriptions-sidebar{ flex-basis: 300px; background-color: #dadada; @@ -44,11 +47,17 @@ {% endblock style %} {% block main %} - <nav class="item-grid"> - {% for video_info in videos %} - {{ common_elements.item(video_info, include_author=false) }} - {% endfor %} - </nav> + <div class="video-section"> + <nav class="item-grid"> + {% for video_info in videos %} + {{ common_elements.item(video_info, include_author=false) }} + {% endfor %} + </nav> + + <nav class="page-button-row"> + {{ common_elements.page_buttons(num_pages, '/youtube.com/subscriptions', parameters_dictionary) }} + </nav> + </div> <div class="subscriptions-sidebar"> <div class="sidebar-links"> @@ -91,7 +100,4 @@ </div> - <nav class="page-button-row"> - {# TODO #} - </nav> {% endblock main %} |