From e33341d30dadb387a20796fd3fd891914b126b8a Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 9 May 2024 16:00:02 +0200 Subject: [PATCH] fix playlist subscribe template bool logic, #684 --- .../home/templates/home/channel_id_playlist.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tubearchivist/home/templates/home/channel_id_playlist.html b/tubearchivist/home/templates/home/channel_id_playlist.html index 539d4388..52b99800 100644 --- a/tubearchivist/home/templates/home/channel_id_playlist.html +++ b/tubearchivist/home/templates/home/channel_id_playlist.html @@ -53,13 +53,14 @@
-

{{ playlist.playlist_channel }}

{{ playlist.playlist_name }}

Last refreshed: {{ playlist.playlist_last_refresh }}

- {% if playlist.playlist_subscribed and request.user|has_group:"admin" or request.user.is_staff %} - - {% else %} - + {% if request.user|has_group:"admin" or request.user.is_staff %} + {% if playlist.playlist_subscribed %} + + {% else %} + + {% endif %} {% endif %}