Add option to change max_results

This commit is contained in:
Omar Roth
2018-07-16 19:31:49 -05:00
parent cae8e1b883
commit a6292d956d
3 changed files with 33 additions and 20 deletions

View File

@@ -52,6 +52,12 @@ function update_value(element) {
<input name="dark_mode" id="dark_mode" type="checkbox" <% if user.preferences.dark_mode %>checked<% end %>>
</div>
<legend>Subscription preferences</legend>
<div class="pure-control-group">
<label for="max_results">Number of videos shown in feed: </label>
<input name="max_results" id="max_results" type="number" value="<%= user.preferences.max_results %>">
</div>
<div class="pure-controls">
<button type="submit" class="pure-button pure-button-primary">Save preferences</button>
</div>