Replace non-GET links with buttons

This commit is contained in:
2023-05-14 15:11:17 +02:00
parent 459836ca38
commit fbb74bd1f8
5 changed files with 79 additions and 59 deletions

View File

@@ -18,8 +18,9 @@
</td>
<td><%= user.created_at.to_fs(:db_without_sec) %></td>
<td class="actions">
<%= image_link_to t(".disguise"), "incognito", disguise_user_path(user),
data: {turbo: true, turbo_method: :post} if allow_disguise?(user) %>
<% if allow_disguise?(user) %>
<%= image_button_to t(".disguise"), "incognito", disguise_user_path(user) %>
<% end %>
</td>
</tr>
<% end %>