Add watch history

This commit is contained in:
Omar Roth
2018-07-28 20:40:59 -05:00
parent 44eef9654a
commit b5c92c1a2f
4 changed files with 103 additions and 20 deletions

View File

@@ -88,10 +88,22 @@ function update_value(element) {
</div>
<div class="pure-control-group">
<label for="latest_only">Only show latest video from channel: </label>
<label for="latest_only">Only show latest <% if user.preferences.unseen_only %>unseen<% end %> video from channel: </label>
<input name="latest_only" id="latest_only" type="checkbox" <% if user.preferences.latest_only %>checked<% end %>>
</div>
<div class="pure-control-group">
<label for="unseen_only">Only show unseen: </label>
<input name="unseen_only" id="unseen_only" type="checkbox" <% if user.preferences.unseen_only %>checked<% end %>>
</div>
<legend>Data preferences</legend>
<div class="pure-control-group">
<label>
<a href="/clear_watch_history">Clear watch history</a>
</labe>
</div>
<div class="pure-controls">
<button type="submit" class="pure-button pure-button-primary">Save preferences</button>
</div>