We're choosing the default `with_first_argument` style because it's the one we use the most.
19 lines
844 B
Plaintext
19 lines
844 B
Plaintext
<%= render Shared::ModerationActionsComponent.new(debate) %>
|
|
|
|
<% if can? :mark_featured, debate %>
|
|
|
|
|
<% if debate.featured? %>
|
|
<%= link_to t("admin.actions.unmark_featured").capitalize, unmark_featured_debate_path(debate),
|
|
method: :put,
|
|
data: { confirm: t("admin.actions.confirm_action",
|
|
action: t("admin.actions.unmark_featured"),
|
|
name: debate.title) } %>
|
|
<% else %>
|
|
<%= link_to t("admin.actions.mark_featured").capitalize, mark_featured_debate_path(debate),
|
|
method: :put,
|
|
data: { confirm: t("admin.actions.confirm_action",
|
|
action: t("admin.actions.mark_featured"),
|
|
name: debate.title) } %>
|
|
<% end %>
|
|
<% end %>
|