diff --git a/tubearchivist/home/templates/home/channel.html b/tubearchivist/home/templates/home/channel.html index c09efcc..977dd4c 100644 --- a/tubearchivist/home/templates/home/channel.html +++ b/tubearchivist/home/templates/home/channel.html @@ -80,11 +80,11 @@

Last refreshed: {{ channel.source.channel_last_refresh }}

-

{% if channel.source.channel_subscribed %} + {% if channel.source.channel_subscribed %} {% else %} - {% endif %}

+ {% endif %}
diff --git a/tubearchivist/home/templates/home/playlist.html b/tubearchivist/home/templates/home/playlist.html index 9959919..122705a 100644 --- a/tubearchivist/home/templates/home/playlist.html +++ b/tubearchivist/home/templates/home/playlist.html @@ -65,11 +65,11 @@

{{ playlist.source.playlist_channel }}

{{ playlist.source.playlist_name }}

Last refreshed: {{ playlist.source.playlist_last_refresh }}

-

{% if playlist.source.playlist_subscribed %} + {% if playlist.source.playlist_subscribed %} {% else %} - {% endif %}

+ {% endif %} {% endfor %} diff --git a/tubearchivist/home/templates/home/playlist_id.html b/tubearchivist/home/templates/home/playlist_id.html index cfa32d3..9e176e8 100644 --- a/tubearchivist/home/templates/home/playlist_id.html +++ b/tubearchivist/home/templates/home/playlist_id.html @@ -25,13 +25,12 @@

Last refreshed: {{ playlist_info.playlist_last_refresh }}

-

Playlist: - {% if playlist_info.playlist_subscribed %} - - {% else %} - - {% endif %} -

+

Playlist:

+ {% if playlist_info.playlist_subscribed %} + + {% else %} + + {% endif %} {% if playlist_info.playlist_active %}

Youtube: Active

{% else %} diff --git a/tubearchivist/static/css/style.css b/tubearchivist/static/css/style.css index 75bcd4d..a01ad4f 100644 --- a/tubearchivist/static/css/style.css +++ b/tubearchivist/static/css/style.css @@ -729,7 +729,8 @@ button:hover { align-content: center; } -.playlist-desc.list > * { +.playlist-desc.list > a, +.playlist-desc.list > p { width: 100%; } diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js index 6da19c3..62f06aa 100644 --- a/tubearchivist/static/script.js +++ b/tubearchivist/static/script.js @@ -46,17 +46,19 @@ function isUnwatched(youtube_id) { } function unsubscribe(id_unsub) { - console.log(payload); var payload = JSON.stringify({'unsubscribe': id_unsub}); sendPost(payload); - document.getElementById(id_unsub).replaceWith("You are unsubscribed."); + var message = document.createElement('span'); + message.innerText = "You are unsubscribed."; + document.getElementById(id_unsub).replaceWith(message); } function subscribe(id_sub) { var payload = JSON.stringify({'subscribe': id_sub}); - console.log(payload); sendPost(payload); - document.getElementById(id_sub).replaceWith("You are subscribed."); + var message = document.createElement('span'); + message.innerText = "You are subscribed."; + document.getElementById(id_sub).replaceWith(message); } function changeView(image) {