From 1a3824a5af5f80f7d3ab0d56787012ff39180a56 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 e8af92ca..5f25c31d 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -71,19 +71,30 @@
-
-
- <% sort_options.each do |sort| %> -
- <% if sort_by == sort %> - <%= translate(locale, sort) %> - <% else %> - - <%= translate(locale, sort) %> - - <% end %> -
- <% end %> +
+
+