From 4d3a9f9da1a548dc2fc45a990b60d28d4dd5558c Mon Sep 17 00:00:00 2001 From: DCCXX <117180485+DCCXX@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:13:16 +0100 Subject: [PATCH 1/3] Add 'Show as Playlist' to Channel Page [Try 2] --- src/invidious/views/channel.ecr | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr index dea86abe..283420b0 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -64,6 +64,13 @@ <%= translate(locale, "Switch Invidious Instance") %> <% end %> +
+ <% if channel.auto_generated %> + <%= translate(locale, "View as Playlist") %> + <% else %> + <%= translate(locale, "View as Playlist") %> + <% end %> +
<% if !channel.auto_generated %>
<%= translate(locale, "Videos") %> From a6286f61b7aa27f0b679b2f90671148aa4ce297a Mon Sep 17 00:00:00 2001 From: DCCXX <117180485+DCCXX@users.noreply.github.com> Date: Sun, 20 Nov 2022 23:05:03 +0100 Subject: [PATCH 2/3] Fixed identation --- src/invidious/views/channel.ecr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr index 283420b0..7f79245d 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -65,7 +65,7 @@ <% end %>
- <% if channel.auto_generated %> + <% if channel.auto_generated %> <%= translate(locale, "View as Playlist") %> <% else %> <%= translate(locale, "View as Playlist") %> From 14ade1b9f0fd9a3755535a302b2e3e956718ab49 Mon Sep 17 00:00:00 2001 From: DCCXX <117180485+DCCXX@users.noreply.github.com> Date: Mon, 21 Nov 2022 14:52:00 +0100 Subject: [PATCH 3/3] Actually fixed indentation using spaces --- src/invidious/views/channel.ecr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr index 7f79245d..c608a336 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -65,10 +65,10 @@ <% end %>
- <% if channel.auto_generated %> + <% if channel.auto_generated %> <%= translate(locale, "View as Playlist") %> <% else %> - <%= translate(locale, "View as Playlist") %> + <%= translate(locale, "View as Playlist") %> <% end %>
<% if !channel.auto_generated %>