diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-08-05 18:55:23 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-08-05 18:57:32 -0500 |
| commit | 66b949bed1b2d685ec2f76c99897a13b94a9373b (patch) | |
| tree | ca542f05935ee9f7db4ef7c6473eab16bf450887 | |
| parent | c9a05187fbd67ca59d02e503210beb5b5861790f (diff) | |
| download | invidious-66b949bed1b2d685ec2f76c99897a13b94a9373b.tar.gz invidious-66b949bed1b2d685ec2f76c99897a13b94a9373b.tar.bz2 invidious-66b949bed1b2d685ec2f76c99897a13b94a9373b.zip | |
Format history.ecr
| -rw-r--r-- | src/invidious/views/history.ecr | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/invidious/views/history.ecr b/src/invidious/views/history.ecr index a4a947db..e5154560 100644 --- a/src/invidious/views/history.ecr +++ b/src/invidious/views/history.ecr @@ -26,32 +26,32 @@ var watched_data = { <script src="/js/watched_widget.js"></script> <div class="pure-g"> -<% watched.each_slice(4) do |slice| %> - <% slice.each do |item| %> - <div class="pure-u-1 pure-u-md-1-4"> - <div class="h-box"> - <a style="width:100%" href="/watch?v=<%= item %>"> - <% if !env.get("preferences").as(Preferences).thin_mode %> - <div class="thumbnail"> - <img class="thumbnail" src="/vi/<%= item %>/mqdefault.jpg"/> - <form onsubmit="return false" action="/watch_ajax?action_mark_unwatched=1&id=<%= item %>&referer=<%= env.get("current_page") %>" method="post"> - <input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>"> - <p class="watched"> - <a onclick="mark_unwatched(this)" data-id="<%= item %>" href="javascript:void(0)"> - <button type="submit" style="all:unset"> - <i class="icon ion-md-trash"></i> - </button> - </a> - </p> - </form> - </div> - <p></p> - <% end %> - </a> + <% watched.each_slice(4) do |slice| %> + <% slice.each do |item| %> + <div class="pure-u-1 pure-u-md-1-4"> + <div class="h-box"> + <a style="width:100%" href="/watch?v=<%= item %>"> + <% if !env.get("preferences").as(Preferences).thin_mode %> + <div class="thumbnail"> + <img class="thumbnail" src="/vi/<%= item %>/mqdefault.jpg"/> + <form onsubmit="return false" action="/watch_ajax?action_mark_unwatched=1&id=<%= item %>&referer=<%= env.get("current_page") %>" method="post"> + <input type="hidden" name="csrf_token" value="<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>"> + <p class="watched"> + <a onclick="mark_unwatched(this)" data-id="<%= item %>" href="javascript:void(0)"> + <button type="submit" style="all:unset"> + <i class="icon ion-md-trash"></i> + </button> + </a> + </p> + </form> + </div> + <p></p> + <% end %> + </a> + </div> </div> - </div> - <% end %> -<% end %> + <% end %> + <% end %> </div> <div class="pure-g h-box"> |
