aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/channel.html
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-12-23 15:09:44 -0800
committerJames Taylor <user234683@users.noreply.github.com>2019-12-23 15:09:44 -0800
commita428d47bde199a3837dcc0208cb240a1dac61992 (patch)
tree90252a5f7805b2a3e296c02b128211ccbf12b32a /youtube/templates/channel.html
parent9737ffcf827bb04f3f84929cefb9f051c7b5ee95 (diff)
downloadyt-local-a428d47bde199a3837dcc0208cb240a1dac61992.tar.lz
yt-local-a428d47bde199a3837dcc0208cb240a1dac61992.tar.xz
yt-local-a428d47bde199a3837dcc0208cb240a1dac61992.zip
Channel searching: indicate if there's no results
Diffstat (limited to 'youtube/templates/channel.html')
-rw-r--r--youtube/templates/channel.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html
index 5b64737..a0cdff9 100644
--- a/youtube/templates/channel.html
+++ b/youtube/templates/channel.html
@@ -161,7 +161,11 @@
{% elif current_tab == 'playlists' %}
{% set sorts = [('2', 'oldest'), ('3', 'newest'), ('4', 'last video added')] %}
{% elif current_tab == 'search' %}
- <h2 class="page-number">Page {{ page_number }}</h2>
+ {% if items %}
+ <h2 class="page-number">Page {{ page_number }}</h2>
+ {% else %}
+ <h2 class="page-number">No results</h2>
+ {% endif %}
{% else %}
{% set sorts = [] %}
{% endif %}