diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-12-23 15:09:44 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-12-23 15:09:44 -0800 |
commit | a428d47bde199a3837dcc0208cb240a1dac61992 (patch) | |
tree | 90252a5f7805b2a3e296c02b128211ccbf12b32a /youtube | |
parent | 9737ffcf827bb04f3f84929cefb9f051c7b5ee95 (diff) | |
download | yt-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')
-rw-r--r-- | youtube/templates/channel.html | 6 |
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 %} |