Initial commit
This commit is contained in:
26
app/views/bookmarks/_bookmark.html.erb
Normal file
26
app/views/bookmarks/_bookmark.html.erb
Normal file
@@ -0,0 +1,26 @@
|
||||
<tr id="<%= dom_id(bookmark) %>">
|
||||
<td>
|
||||
<%= bookmark.category %>
|
||||
</td>
|
||||
<td>
|
||||
<%= bookmark.notes %>
|
||||
</td>
|
||||
<td>
|
||||
<a data-behavior="seekable-timecode">
|
||||
<%= bookmark.appears_at %>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="dropdown">
|
||||
<%= button_tag t(".actions.manage"), class: "btn btn-light btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<% if policy(bookmark).edit? %>
|
||||
<%= link_to fa_icon("pencil fw", text: "Edit"), [:edit, bookmark], class: "dropdown-item", remote: true %>
|
||||
<% end %>
|
||||
<% if policy(bookmark).destroy? %>
|
||||
<%= link_to fa_icon("trash fw", text: "Delete"), [bookmark], class: "dropdown-item", method: :delete, remote: true %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user