From 5b81d429eae9bc05ec160690c0e28503278ea79f Mon Sep 17 00:00:00 2001 From: syeopite Date: Mon, 29 Mar 2021 11:31:41 -0700 Subject: [PATCH] Refactor channel sorting links to dropdown --- src/invidious/views/channel.ecr | 37 +++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr index a996f283..232342c8 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -74,19 +74,30 @@
-
-
- <% sort_options.each do |sort| %> -
- <% if sort_by == sort %> - <%= translate(locale, sort) %> - <% else %> - - <%= translate(locale, sort) %> - - <% end %> -
- <% end %> +
+
+