Add 'published - reverse' option to feed

This commit is contained in:
Omar Roth 2018-11-13 20:29:36 -06:00
parent c8b321920d
commit adcefa4ffa
2 changed files with 20 additions and 8 deletions

View file

@ -131,7 +131,7 @@ function update_value(element) {
<div class="pure-control-group">
<label for="sort">Sort videos by: </label>
<select name="sort" id="sort">
<% ["published", "alphabetically", "alphabetically - reverse", "channel name", "channel name - reverse"].each do |option| %>
<% {"published", "published - reverse", "alphabetically", "alphabetically - reverse", "channel name", "channel name - reverse"}.each do |option| %>
<option <% if user.preferences.sort == option %> selected <% end %>><%= option %></option>
<% end %>
</select>