Merge pull request #48 from omarroth/add-watch-history

Add watch history
This commit is contained in:
Omar Roth
2018-07-30 08:01:06 -05:00
committed by GitHub
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>