summaryrefslogtreecommitdiff
path: root/app/views/assets/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/assets/index.html.erb')
-rw-r--r--app/views/assets/index.html.erb21
1 files changed, 15 insertions, 6 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb
index 51fc486..8c35561 100644
--- a/app/views/assets/index.html.erb
+++ b/app/views/assets/index.html.erb
@@ -1,12 +1,19 @@
1<% content_for :subnavigation do %> 1<h1>Assets</h1>
2 <%= link_to 'New asset', new_asset_path %>
3<% end %>
4 2
3<%= link_to new_asset_path, class: 'action_button' do %>
4 <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create asset
5<% end %>
5 6
6<%= will_paginate @assets %> 7<%= will_paginate @assets %>
7 8
8<table> 9<table class="assets_table">
9 <tr> 10 <tr class="header">
11 <th>Preview</th>
12 <th>Name</th>
13 <th>Type</th>
14 <th></th>
15 <th></th>
16 <th></th>
10 </tr> 17 </tr>
11<% @assets.each do |asset| %> 18<% @assets.each do |asset| %>
12 <tr> 19 <tr>
@@ -15,7 +22,9 @@
15 <td><%= asset.upload.content_type %></td> 22 <td><%= asset.upload.content_type %></td>
16 <td><%= link_to 'Show', asset %></td> 23 <td><%= link_to 'Show', asset %></td>
17 <td><%= link_to 'Edit', edit_asset_path(asset) %></td> 24 <td><%= link_to 'Edit', edit_asset_path(asset) %></td>
18 <td><%= button_to 'Destroy', asset, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td> 25 <td><%= button_to asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %>
26 <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy
27 <% end %></td>
19 </tr> 28 </tr>
20<% end %> 29<% end %>
21</table> 30</table>