Add YouTube comments

This commit is contained in:
Omar Roth
2018-07-28 09:49:58 -05:00
parent 829ffdd466
commit 1eb7066c74
4 changed files with 190 additions and 48 deletions

View File

@@ -47,6 +47,15 @@ function update_value(element) {
<span class="pure-form-message-inline" id="volume-value"><%= user.preferences.volume %></span>
</div>
<div class="pure-control-group">
<label for="comments">Pull comments from: </label>
<select name="comments" id="comments">
<% ["youtube", "reddit"].each do |option| %>
<option <% if user.preferences.comments == option %> selected <% end %>><%= option %></option>
<% end %>
</select>
</div>
<legend>Visual preferences</legend>
<div class="pure-control-group">
<label for="dark_mode">Dark mode: </label>