Refactors order_selector
Moves the information about the current order to the selector, not to the container
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
%>
|
||||
|
||||
<form class="inline-block">
|
||||
<select class="js-location-changer" name="order-selector">
|
||||
<select class="js-location-changer js-order-selector" data-order="<%= @current_order %>" name="order-selector">
|
||||
<% @valid_orders.each do |order| %>
|
||||
<option <%= 'selected' if order == @current_order %>
|
||||
value='<%= current_path_with_query_params(order: order, page: 1) %>'>
|
||||
Reference in New Issue
Block a user