diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index 8cf4f45af..d04fdc5c6 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -142,6 +142,10 @@ <%= link_to t("admin.menu.hidden_comments"), admin_comments_path %> +
<%= t("admin.shared.moderated_content") %>
+ +<%= render 'shared/filter_subnav', i18n_namespace: "admin.proposal_notifications.index" %> + +<% if @proposal_notifications.any? %> +| <%= t("admin.shared.title") %> | +<%= t("admin.shared.description") %> | +<%= t("admin.shared.actions") %> | + + + <% @proposal_notifications.each do |proposal_notification| %> +
|---|---|---|
| + <%= proposal_notification.title %> + | +
+
+ <%= proposal_notification.body %>
+
+ |
+ + <%= link_to t("admin.actions.restore"), + restore_admin_proposal_notification_path(proposal_notification, request.query_parameters), + method: :put, + data: { confirm: t("admin.actions.confirm") }, + class: "button hollow warning" %> + <% unless proposal_notification.confirmed_hide? %> + <%= link_to t("admin.actions.confirm_hide"), + confirm_hide_admin_proposal_notification_path(proposal_notification, request.query_parameters), + method: :put, + class: "button" %> + <% end %> + | +