+ <% # Grabs all search filters. This is to make sure we don't accidently overwrite something within the
+ # search query later on.
+ -%>
+ <% filter_params = env.request.query_params.to_s.gsub(/q=.+?(?=&|$)/, "") %>
+ <% base_url = "/search?q=#{HTML.escape(query.not_nil!)}" -%>
+
+ <% filters = ["hour", "today", "week", "month", "year"] %>
+ <% filter_name = "date" %>
+ <% selected_default = "NotNeeded" %>
+ <%= rendered "components/search-filters/filter-column" -%>
+
+ <% filters = ["video", "channel", "playlist", "movie", "show"] %>
+ <% filter_name = "content_type" %>
+ <% selected_default = "NotNeeded" %>
+ <%= rendered "components/search-filters/filter-column" -%>
+
+ <% filters = ["short", "long"] %>
+ <% filter_name = "duration" %>
+ <%= rendered "components/search-filters/filter-column" -%>
+
+ <%
+ # Since the feature filter column is unqiue (multiple filters can be applied),
+ # we'll have to define it manually.
+ %>
+
+ <%= translate(locale, "features") %>
+
+
+
+
+
+ <% filters = ["relevance", "rating", "date", "views"] %>
+ <% filter_name = "sort" %>
+ <% selected_default = "relevance" %>
+ <%= rendered "components/search-filters/filter-column" -%>
+
+
+