When restricting subscriptions to a tag, make that tag unclickable and add link to unrestrict

This commit is contained in:
James Taylor 2019-08-12 15:09:28 -07:00
parent dd4841901f
commit de33ee6bb8
2 changed files with 12 additions and 1 deletions

View File

@ -535,6 +535,7 @@ def get_subscriptions_page():
num_pages = math.ceil(number_of_videos_in_db/60),
parameters_dictionary = request.args,
tags = tags,
current_tag = tag,
subscription_list = subscription_list,
)

View File

@ -71,9 +71,19 @@
<hr>
<ol class="sidebar-list tags">
{% if current_tag %}
<li class="sidebar-list-item">
<a href="/youtube.com/subscriptions" class="sidebar-item-name">Any tag</a>
</li>
{% endif %}
{% for tag in tags %}
<li class="sidebar-list-item">
{% if tag == current_tag %}
<span class="sidebar-item-name">{{ tag }}</span>
{% else %}
<a href="?tag={{ tag|urlencode }}" class="sidebar-item-name">{{ tag }}</a>
{% endif %}
<form method="POST" class="sidebar-item-refresh">
<input type="submit" value="Check">
<input type="hidden" name="action" value="refresh">