|
|
|
@ -7,8 +7,51 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="pure-g h-box">
|
|
|
|
|
<div class="pure-u-2-3">
|
|
|
|
|
<div class="pure-u-1-2">
|
|
|
|
|
<h3><%= title %></h3>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pure-u-1-2 user-field">
|
|
|
|
|
<%- if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email -%>
|
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
|
<a class="pure-button pure-button-secondary low-profile" dir="auto" href="/add_playlist_items?list=<%= plid %>">
|
|
|
|
|
<i class="icon ion-md-add"></i> <%= translate(locale, "playlist_button_add_items") %>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
|
<a class="pure-button pure-button-secondary low-profile" dir="auto" href="/edit_playlist?list=<%= plid %>">
|
|
|
|
|
<i class="icon ion-md-create"></i> <%= translate(locale, "generic_button_edit") %>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
|
<a class="pure-button pure-button-secondary low-profile" dir="auto" href="/delete_playlist?list=<%= plid %>">
|
|
|
|
|
<i class="icon ion-md-trash"></i> <%= translate(locale, "generic_button_delete") %>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<%- else -%>
|
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
|
<%- if IV::Database::Playlists.exists?(playlist.id) -%>
|
|
|
|
|
<a class="pure-button pure-button-secondary low-profile" dir="auto" href="/subscribe_playlist?list=<%= plid %>">
|
|
|
|
|
<i class="icon ion-md-add"></i> <%= translate(locale, "Subscribe") %>
|
|
|
|
|
</a>
|
|
|
|
|
<%- else -%>
|
|
|
|
|
<a class="pure-button pure-button-secondary low-profile" dir="auto" href="/delete_playlist?list=<%= plid %>">
|
|
|
|
|
<i class="icon ion-md-trash"></i> <%= translate(locale, "Unsubscribe") %>
|
|
|
|
|
</a>
|
|
|
|
|
<%- end -%>
|
|
|
|
|
</div>
|
|
|
|
|
<%- end -%>
|
|
|
|
|
|
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
|
<a class="pure-button pure-button-secondary low-profile" dir="auto" href="/feed/playlist/<%= plid %>">
|
|
|
|
|
<i class="icon ion-logo-rss"></i> <%= translate(locale, "generic_button_rss") %>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="h-box">
|
|
|
|
|
<div class="pure-u-1-1">
|
|
|
|
|
<% if playlist.is_a? InvidiousPlaylist %>
|
|
|
|
|
<b>
|
|
|
|
|
<% if playlist.author == user.try &.email %>
|
|
|
|
@ -54,37 +97,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pure-u-1-3" style="text-align:right">
|
|
|
|
|
<h3>
|
|
|
|
|
<div class="pure-g user-field">
|
|
|
|
|
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
|
|
|
|
|
<div class="pure-u-1-3"><a href="/edit_playlist?list=<%= plid %>"><i class="icon ion-md-create"></i></a></div>
|
|
|
|
|
<div class="pure-u-1-3"><a href="/delete_playlist?list=<%= plid %>"><i class="icon ion-md-trash"></i></a></div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if Invidious::Database::Playlists.exists?(playlist.id) %>
|
|
|
|
|
<div class="pure-u-1-3"><a href="/subscribe_playlist?list=<%= plid %>"><i class="icon ion-md-add"></i></a></div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="pure-u-1-3"><a href="/delete_playlist?list=<%= plid %>"><i class="icon ion-md-trash"></i></a></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="pure-u-1-3"><a href="/feed/playlist/<%= plid %>"><i class="icon ion-logo-rss"></i></a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</h3>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="h-box">
|
|
|
|
|
<div id="descriptionWrapper"><%= playlist.description_html %></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% if playlist.is_a?(InvidiousPlaylist) && playlist.author == user.try &.email %>
|
|
|
|
|
<div class="h-box" style="text-align:right">
|
|
|
|
|
<h3>
|
|
|
|
|
<a href="/add_playlist_items?list=<%= plid %>"><i class="icon ion-md-add"></i></a>
|
|
|
|
|
</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="h-box">
|
|
|
|
|
<hr>
|
|
|
|
|
</div>
|
|
|
|
|