diff --git a/app/views/moderation/comments/index.html.erb b/app/views/moderation/comments/index.html.erb index ae919a71c..f9c5ee341 100644 --- a/app/views/moderation/comments/index.html.erb +++ b/app/views/moderation/comments/index.html.erb @@ -9,63 +9,61 @@ <%= form_tag moderate_moderation_comments_path(request.query_parameters), method: :put do %> -

+

<%= t('shared.check') %>: - <%= link_to t('shared.check_all'), '#', data: {check_all: "comment_ids[]"} %> + <%= link_to t('shared.check_all'), '#', data: { check_all: "comment_ids[]" } %> | - <%= link_to t('shared.check_none'), '#', data: {check_none: "comment_ids[]"} %> + <%= link_to t('shared.check_none'), '#', data: { check_none: "comment_ids[]" } %>

- - - - - - - <% @comments.each do |comment| %> - - - +
- <%= t("moderation.comments.index.headers.comment") %> - - <%= t("moderation.comments.index.headers.moderate") %> -
- <%= comment.commentable_type.constantize.model_name.human %> - - <%= link_to comment.commentable.title, commentable_path(comment) %> -
- <%= l comment.updated_at.to_date %> -  •  - <%= comment.flags_count %> -  •  - <%= comment.author.username %> -
-

- <%= comment.body %> -

-
- <%= check_box_tag "comment_ids[]", comment.id, nil, id: "#{dom_id(comment)}_check" %> -
+ + + + - <% end %> + + + + <% @comments.each do |comment| %> + + + + + <% end %> +
<%= t("moderation.comments.index.headers.comment") %><%= t("moderation.comments.index.headers.moderate") %>
+ <%= comment.commentable_type.constantize.model_name.human %> - + <%= link_to comment.commentable.title, commentable_path(comment), target: "_blank" %> +
+ <%= l comment.updated_at.to_date %> +  •  + <%= comment.flags_count %> +  •  + <%= comment.author.username %> +
+
+ <%= comment.body %> +
+
+ <%= check_box_tag "comment_ids[]", comment.id, nil, id: "#{dom_id(comment)}_check" %> +
<%= submit_tag t('moderation.comments.index.block_authors'), - name: "block_authors", - class: "button hollow alert", - data: {confirm: t('moderation.comments.index.confirm')} - %> + name: "block_authors", + class: "button hollow alert", + data: { confirm: t('moderation.comments.index.confirm') } %>
<%= submit_tag t('moderation.comments.index.hide_comments'), - name: "hide_comments", - class: "button hollow alert", - data: {confirm: t('moderation.comments.index.confirm')} - %> + name: "hide_comments", + class: "button hollow alert", + data: { confirm: t('moderation.comments.index.confirm') } %> + <%= submit_tag t('moderation.comments.index.ignore_flags'), - name: "ignore_flags", - class: "button hollow", - data: {confirm: t('moderation.comments.index.confirm')} - %> + name: "ignore_flags", + class: "button hollow", + data: { confirm: t('moderation.comments.index.confirm') } %>
<%= paginate @comments %> diff --git a/app/views/moderation/debates/index.html.erb b/app/views/moderation/debates/index.html.erb index 86583fc3d..c0fae2919 100644 --- a/app/views/moderation/debates/index.html.erb +++ b/app/views/moderation/debates/index.html.erb @@ -11,59 +11,58 @@ <%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %>

<%= t('shared.check') %>: - <%= link_to t('shared.check_all'), '#', data: {check_all: "debate_ids[]"} %> + <%= link_to t('shared.check_all'), '#', data: { check_all: "debate_ids[]" } %> | - <%= link_to t('shared.check_none'), '#', data: {check_none: "debate_ids[]"} %> + <%= link_to t('shared.check_none'), '#', data: { check_none: "debate_ids[]" } %>

- - - - - <% @debates.each do |debate| %> - - - + + + + - <% end %> + + + + <% @debates.each do |debate| %> + + + + + <% end %> +
- <%= t("moderation.debates.index.headers.debate") %> - - <%= t("moderation.debates.index.headers.moderate") %> -
- <%= link_to debate.title, debate, target: "_blank" %> -
- <%= l debate.updated_at.to_date %> -  •  - <%= debate.flags_count %> -  •  - <%= debate.author.username %> -
-
- <%= debate.description %> -
-
- <%= check_box_tag "debate_ids[]", debate.id, nil, id: "#{dom_id(debate)}_check" %> -
<%= t("moderation.debates.index.headers.debate") %><%= t("moderation.debates.index.headers.moderate") %>
+ <%= link_to debate.title, debate, target: "_blank" %> +
+ <%= l debate.updated_at.to_date %> +  •  + <%= debate.flags_count %> +  •  + <%= debate.author.username %> +
+
+ <%= debate.description %> +
+
+ <%= check_box_tag "debate_ids[]", debate.id, nil, id: "#{dom_id(debate)}_check" %> +
<%= submit_tag t('moderation.debates.index.block_authors'), - name: "block_authors", - class: "button alert", - data: {confirm: t('moderation.debates.index.confirm')} - %> + name: "block_authors", + class: "button hollow alert", + data: { confirm: t('moderation.debates.index.confirm') } %>
<%= submit_tag t('moderation.debates.index.hide_debates'), - name: "hide_debates", - class: "button alert", - data: {confirm: t('moderation.debates.index.confirm')} - %> + name: "hide_debates", + class: "button hollow alert", + data: { confirm: t('moderation.debates.index.confirm') } %> + <%= submit_tag t('moderation.debates.index.ignore_flags'), - name: "ignore_flags", - class: "button success", - data: {confirm: t('moderation.debates.index.confirm')} - %> + name: "ignore_flags", + class: "button hollow", + data: { confirm: t('moderation.debates.index.confirm') } %>
<%= paginate @debates %> diff --git a/app/views/moderation/proposal_notifications/index.html.erb b/app/views/moderation/proposal_notifications/index.html.erb index bc8615c35..e32f3d1da 100644 --- a/app/views/moderation/proposal_notifications/index.html.erb +++ b/app/views/moderation/proposal_notifications/index.html.erb @@ -9,57 +9,59 @@ <%= form_tag moderate_moderation_proposal_notifications_path(request.query_parameters), method: :put do %> -

+

<%= t('shared.check') %>: - <%= link_to t('shared.check_all'), '#', data: {check_all: "proposal_notification_ids[]"} %> + <%= link_to t('shared.check_all'), '#', data: { check_all: "proposal_notification_ids[]" } %> | - <%= link_to t('shared.check_none'), '#', data: {check_none: "proposal_notification_ids[]"} %> + <%= link_to t('shared.check_none'), '#', data: { check_none: "proposal_notification_ids[]" } %>

- - - - - <% @proposal_notifications.each do |proposal_notification| %> - - - + + + + - <% end %> + + + + <% @proposal_notifications.each do |proposal_notification| %> + + + + + <% end %> +
- <%= t("moderation.proposal_notifications.index.headers.proposal_notification") %> - - <%= t("moderation.proposal_notifications.index.headers.moderate") %> -
- <%= link_to proposal_notification.title, proposal_notification, target: "_blank" %> -
- <%= l proposal_notification.updated_at.to_date %> -
-
- <%= proposal_notification.body %> -
-
- <%= check_box_tag "proposal_notification_ids[]", proposal_notification.id, nil, id: "#{dom_id(proposal_notification)}_check" %> -
<%= t("moderation.proposal_notifications.index.headers.proposal_notification") %><%= t("moderation.proposal_notifications.index.headers.moderate") %>
+ <%= link_to proposal_notification.title, proposal_notification, target: "_blank" %> +
+ <%= l proposal_notification.updated_at.to_date %> +
+
+ <%= proposal_notification.body %> +
+
+ <%= check_box_tag "proposal_notification_ids[]", + proposal_notification.id, + nil, + id: "#{dom_id(proposal_notification)}_check" %> +
<%= submit_tag t('moderation.proposal_notifications.index.block_authors'), - name: "block_authors", - class: "button hollow alert", - data: {confirm: t('moderation.proposal_notifications.index.confirm')} - %> + name: "block_authors", + class: "button hollow alert", + data: { confirm: t('moderation.proposal_notifications.index.confirm') } %>
<%= submit_tag t('moderation.proposal_notifications.index.hide_proposal_notifications'), - name: "hide_proposal_notifications", - class: "button hollow alert", - data: {confirm: t('moderation.proposal_notifications.index.confirm')} - %> + name: "hide_proposal_notifications", + class: "button hollow alert", + data: { confirm: t('moderation.proposal_notifications.index.confirm') } %> + <%= submit_tag t('moderation.proposal_notifications.index.ignore_flags'), - name: "ignore_flags", - class: "button hollow", - data: {confirm: t('moderation.proposal_notifications.index.confirm')} - %> + name: "ignore_flags", + class: "button hollow", + data: { confirm: t('moderation.proposal_notifications.index.confirm') } %>
<%= paginate @proposal_notifications %> diff --git a/app/views/moderation/proposals/index.html.erb b/app/views/moderation/proposals/index.html.erb index 6c5c671a7..8173f07ca 100644 --- a/app/views/moderation/proposals/index.html.erb +++ b/app/views/moderation/proposals/index.html.erb @@ -9,64 +9,62 @@ <%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %> -

+

<%= t('shared.check') %>: - <%= link_to t('shared.check_all'), '#', data: {check_all: "proposal_ids[]"} %> + <%= link_to t('shared.check_all'), '#', data: { check_all: "proposal_ids[]" } %> | - <%= link_to t('shared.check_none'), '#', data: {check_none: "proposal_ids[]"} %> + <%= link_to t('shared.check_none'), '#', data: { check_none: "proposal_ids[]" } %>

- - - - - <% @proposals.each do |proposal| %> - - - + + + + - <% end %> + + + + <% @proposals.each do |proposal| %> + + + + + <% end %> +
- <%= t("moderation.proposals.index.headers.proposal") %> - - <%= t("moderation.proposals.index.headers.moderate") %> -
- <%= link_to proposal.title, proposal, target: "_blank" %> -
- <%= l proposal.updated_at.to_date %> -  •  - <%= proposal.flags_count %> -  •  - <%= proposal.author.username %> -
-
- <%= proposal.description %> -
-
- <%= check_box_tag "proposal_ids[]", proposal.id, nil, id: "#{dom_id(proposal)}_check" %> -
<%= t("moderation.proposals.index.headers.proposal") %><%= t("moderation.proposals.index.headers.moderate") %>
+ <%= link_to proposal.title, proposal, target: "_blank" %> +
+ <%= l proposal.updated_at.to_date %> +  •  + <%= proposal.flags_count %> +  •  + <%= proposal.author.username %> +
+
+ <%= proposal.description %> +
+
+ <%= check_box_tag "proposal_ids[]", proposal.id, nil, id: "#{dom_id(proposal)}_check" %> +
<%= submit_tag t('moderation.proposals.index.block_authors'), - name: "block_authors", - class: "button hollow alert", - data: {confirm: t('moderation.proposals.index.confirm')} - %> + name: "block_authors", + class: "button hollow alert", + data: { confirm: t('moderation.proposals.index.confirm') } %>
<%= submit_tag t('moderation.proposals.index.hide_proposals'), - name: "hide_proposals", - class: "button hollow alert", - data: {confirm: t('moderation.proposals.index.confirm')} - %> + name: "hide_proposals", + class: "button hollow alert", + data: { confirm: t('moderation.proposals.index.confirm') } %> + <%= submit_tag t('moderation.proposals.index.ignore_flags'), - name: "ignore_flags", - class: "button hollow", - data: {confirm: t('moderation.proposals.index.confirm')} - %> + name: "ignore_flags", + class: "button hollow", + data: { confirm: t('moderation.proposals.index.confirm') } %>
<%= paginate @proposals %> <% end %> -