Note the CSS could probably be improved to avoid duplication with other button style definitions. However, that's fine because we're going to change the style of the links soon. For the same reason, I haven't bothered to style every single link the way it was until now.
13 lines
374 B
Plaintext
13 lines
374 B
Plaintext
<%= render Admin::TableActionsComponent.new(actions: []) do %>
|
|
<%= link_to restore_text, restore_path,
|
|
method: :put,
|
|
data: { confirm: t("admin.actions.confirm") },
|
|
class: "restore-link" %>
|
|
|
|
<% unless record.confirmed_hide? %>
|
|
<%= link_to confirm_hide_text, confirm_hide_path,
|
|
method: :put,
|
|
class: "confirm-hide-link" %>
|
|
<% end %>
|
|
<% end %>
|