diff options
Diffstat (limited to 'app/views/assets')
| -rw-r--r-- | app/views/assets/index.html.erb | 8 | ||||
| -rw-r--r-- | app/views/assets/show.html.erb | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb index 6591091e..8c355617 100644 --- a/app/views/assets/index.html.erb +++ b/app/views/assets/index.html.erb | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | <h1>Assets</h1> | 1 | <h1>Assets</h1> |
| 2 | 2 | ||
| 3 | <%= link_to 'New asset', new_asset_path, class: 'action_button' %> | 3 | <%= link_to new_asset_path, class: 'action_button' do %> |
| 4 | <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create asset | ||
| 5 | <% end %> | ||
| 4 | 6 | ||
| 5 | <%= will_paginate @assets %> | 7 | <%= will_paginate @assets %> |
| 6 | 8 | ||
| @@ -20,7 +22,9 @@ | |||
| 20 | <td><%= asset.upload.content_type %></td> | 22 | <td><%= asset.upload.content_type %></td> |
| 21 | <td><%= link_to 'Show', asset %></td> | 23 | <td><%= link_to 'Show', asset %></td> |
| 22 | <td><%= link_to 'Edit', edit_asset_path(asset) %></td> | 24 | <td><%= link_to 'Edit', edit_asset_path(asset) %></td> |
| 23 | <td><%= button_to 'Destroy', asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } %></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> | ||
| 24 | </tr> | 28 | </tr> |
| 25 | <% end %> | 29 | <% end %> |
| 26 | </table> | 30 | </table> |
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb index 02866780..5717dd99 100644 --- a/app/views/assets/show.html.erb +++ b/app/views/assets/show.html.erb | |||
| @@ -6,7 +6,9 @@ | |||
| 6 | <div class="node_content node_info_group"> | 6 | <div class="node_content node_info_group"> |
| 7 | <div class="node_info_group_items"> | 7 | <div class="node_info_group_items"> |
| 8 | <div class="node_info_item"> | 8 | <div class="node_info_item"> |
| 9 | <%= link_to 'Edit', edit_asset_path(@asset), class: 'action_button' %> | 9 | <%= link_to edit_asset_path(@asset), class: 'action_button' do %> |
| 10 | <%= icon("edit", library: "tabler", "aria-hidden": true) %> Edit | ||
| 11 | <% end %> | ||
| 10 | </div> | 12 | </div> |
| 11 | <div class="node_info_item"> | 13 | <div class="node_info_item"> |
| 12 | <%= link_to 'Back', assets_path %> | 14 | <%= link_to 'Back', assets_path %> |
