|
|
|
@ -26,7 +26,7 @@ function update_value(element) {
|
|
|
|
|
<div class="pure-control-group">
|
|
|
|
|
<label for="speed">Default speed: </label>
|
|
|
|
|
<select name="speed" id="speed">
|
|
|
|
|
<% [2.0, 1.5, 1.0, 0.5].each do |option| %>
|
|
|
|
|
<% {2.0, 1.5, 1.0, 0.5}.each do |option| %>
|
|
|
|
|
<option <% if user.preferences.speed == option %> selected <% end %>><%= option %></option>
|
|
|
|
|
<% end %>
|
|
|
|
|
</select>
|
|
|
|
@ -35,7 +35,7 @@ function update_value(element) {
|
|
|
|
|
<div class="pure-control-group">
|
|
|
|
|
<label for="quality">Preferred video quality: </label>
|
|
|
|
|
<select name="quality" id="quality">
|
|
|
|
|
<% ["hd720", "medium", "small"].each do |option| %>
|
|
|
|
|
<% {"hd720", "medium", "small"}.each do |option| %>
|
|
|
|
|
<option <% if user.preferences.quality == option %> selected <% end %>><%= option %></option>
|
|
|
|
|
<% end %>
|
|
|
|
|
</select>
|
|
|
|
@ -50,7 +50,7 @@ function update_value(element) {
|
|
|
|
|
<div class="pure-control-group">
|
|
|
|
|
<label for="comments">Pull comments from: </label>
|
|
|
|
|
<select name="comments" id="comments">
|
|
|
|
|
<% ["youtube", "reddit"].each do |option| %>
|
|
|
|
|
<% {"youtube", "reddit"}.each do |option| %>
|
|
|
|
|
<option <% if user.preferences.comments == option %> selected <% end %>><%= option %></option>
|
|
|
|
|
<% end %>
|
|
|
|
|
</select>
|
|
|
|
|