diff --git a/app/views/admin/debates/index.html.erb b/app/views/admin/debates/index.html.erb index 118a0ae66..a1dff1137 100644 --- a/app/views/admin/debates/index.html.erb +++ b/app/views/admin/debates/index.html.erb @@ -4,25 +4,32 @@
|
+ <%= debate.title %>
+ +
+ <%= debate.description %>
+
+ |
+ + <%= link_to t("admin.actions.restore"), + restore_admin_debate_path(debate, request.query_parameters), method: :put, - class: "button radius tiny warning right" %> - <% end %> - + data: { confirm: t("admin.actions.confirm") }, + class: "button radius tiny success right" %> + + <% unless debate.confirmed_hide? %> + <%= link_to t("admin.actions.confirm_hide"), + confirm_hide_admin_debate_path(debate, request.query_parameters), + method: :put, + class: "button radius tiny warning right" %> + <% end %> + | +
|
+ <%= proposal.title %>
+ +
+ <%= proposal.description %>
+
+ |
+ + <%= link_to t("admin.actions.restore"), + restore_admin_proposal_path(proposal, request.query_parameters), method: :put, - class: "button radius tiny warning right" %> - <% end %> - + data: { confirm: t("admin.actions.confirm") }, + class: "button radius tiny success right" %> + + <% unless proposal.confirmed_hide? %> + <%= link_to t("admin.actions.confirm_hide"), + confirm_hide_admin_proposal_path(proposal, request.query_parameters), + method: :put, + class: "button radius tiny warning right" %> + <% end %> + | +