Add option to redirect homepage to subscription feed

This commit is contained in:
Omar Roth 2018-07-28 22:31:02 -05:00
parent 09d78c9d3a
commit 0d23f25a8c
3 changed files with 34 additions and 11 deletions

View file

@ -163,6 +163,11 @@ class Preferences
nilable: true,
default: "youtube",
},
redirect_feed: {
type: Bool,
nilable: true,
default: false,
},
dark_mode: Bool,
thin_mode: {
type: Bool,

View file

@ -68,6 +68,11 @@ function update_value(element) {
</div>
<legend>Subscription preferences</legend>
<div class="pure-control-group">
<label for="redirect_feed">Redirect homepage to feed: </label>
<input name="redirect_feed" id="redirect_feed" type="checkbox" <% if user.preferences.redirect_feed %>checked<% end %>>
</div>
<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 %>">