summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-07 21:44:27 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-07 21:44:27 +0200
commit7382e3d15afcef7866667c8b238f4935ae9faff7 (patch)
tree0f7394af6d840f31ea5e0ae4e10f9f38f8adc4f7 /app
parent42f81016be8c55322e0dbb2c20b08812d5d2228b (diff)
Add class destructive to destructive buttons
Diffstat (limited to 'app')
-rw-r--r--app/views/assets/index.html.erb2
-rw-r--r--app/views/users/_user.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb
index 51fc486..e26830b 100644
--- a/app/views/assets/index.html.erb
+++ b/app/views/assets/index.html.erb
@@ -15,7 +15,7 @@
15 <td><%= asset.upload.content_type %></td> 15 <td><%= asset.upload.content_type %></td>
16 <td><%= link_to 'Show', asset %></td> 16 <td><%= link_to 'Show', asset %></td>
17 <td><%= link_to 'Edit', edit_asset_path(asset) %></td> 17 <td><%= link_to 'Edit', edit_asset_path(asset) %></td>
18 <td><%= button_to 'Destroy', asset, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td> 18 <td><%= button_to 'Destroy', asset, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } %></td>
19 </tr> 19 </tr>
20<% end %> 20<% end %>
21</table> 21</table>
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb
index ddb7afd..798b82b 100644
--- a/app/views/users/_user.html.erb
+++ b/app/views/users/_user.html.erb
@@ -9,7 +9,7 @@
9 <td> 9 <td>
10 <%= button_to "destroy", user_path(user), 10 <%= button_to "destroy", user_path(user),
11 method: :delete, 11 method: :delete,
12 form: { data: { confirm: "Do you really want to delete user #{user.login}?" } } %> 12 form: { data: { confirm: "Do you really want to delete user #{user.login}?" }, class: 'button_to destructive' } %>
13 </td> 13 </td>
14 <% end %> 14 <% end %>
15</tr> 15</tr>