Add missing thead & tbody tags on moderation index views
This commit is contained in:
@@ -9,28 +9,27 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form_tag moderate_moderation_comments_path(request.query_parameters), method: :put do %>
|
<%= form_tag moderate_moderation_comments_path(request.query_parameters), method: :put do %>
|
||||||
<p class="js-check">
|
<p class="float-left js-check">
|
||||||
<%= t('shared.check') %>:
|
<%= 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[]" } %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table>
|
<table class="clear">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th><%= t("moderation.comments.index.headers.comment") %></th>
|
||||||
<%= t("moderation.comments.index.headers.comment") %>
|
<th><%= t("moderation.comments.index.headers.moderate") %></th>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<%= t("moderation.comments.index.headers.moderate") %>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
<% @comments.each do |comment| %>
|
<% @comments.each do |comment| %>
|
||||||
<tr id="comment_<%= comment.id %>">
|
<tr id="comment_<%= comment.id %>">
|
||||||
<td>
|
<td>
|
||||||
<%= comment.commentable_type.constantize.model_name.human %> -
|
<%= comment.commentable_type.constantize.model_name.human %> -
|
||||||
<%= link_to comment.commentable.title, commentable_path(comment) %>
|
<%= link_to comment.commentable.title, commentable_path(comment), target: "_blank" %>
|
||||||
<br>
|
<br>
|
||||||
<span class="date"><%= l comment.updated_at.to_date %></span>
|
<span class="date"><%= l comment.updated_at.to_date %></span>
|
||||||
<span class="bullet"> • </span>
|
<span class="bullet"> • </span>
|
||||||
@@ -38,34 +37,33 @@
|
|||||||
<span class="bullet"> • </span>
|
<span class="bullet"> • </span>
|
||||||
<%= comment.author.username %>
|
<%= comment.author.username %>
|
||||||
<br>
|
<br>
|
||||||
<p>
|
<div class="moderation-description">
|
||||||
<%= comment.body %>
|
<%= comment.body %>
|
||||||
</p>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<%= check_box_tag "comment_ids[]", comment.id, nil, id: "#{dom_id(comment)}_check" %>
|
<%= check_box_tag "comment_ids[]", comment.id, nil, id: "#{dom_id(comment)}_check" %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= submit_tag t('moderation.comments.index.block_authors'),
|
<%= submit_tag t('moderation.comments.index.block_authors'),
|
||||||
name: "block_authors",
|
name: "block_authors",
|
||||||
class: "button hollow alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.comments.index.confirm')}
|
data: { confirm: t('moderation.comments.index.confirm') } %>
|
||||||
%>
|
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<%= submit_tag t('moderation.comments.index.hide_comments'),
|
<%= submit_tag t('moderation.comments.index.hide_comments'),
|
||||||
name: "hide_comments",
|
name: "hide_comments",
|
||||||
class: "button hollow alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.comments.index.confirm')}
|
data: { confirm: t('moderation.comments.index.confirm') } %>
|
||||||
%>
|
|
||||||
<%= submit_tag t('moderation.comments.index.ignore_flags'),
|
<%= submit_tag t('moderation.comments.index.ignore_flags'),
|
||||||
name: "ignore_flags",
|
name: "ignore_flags",
|
||||||
class: "button hollow",
|
class: "button hollow",
|
||||||
data: {confirm: t('moderation.comments.index.confirm')}
|
data: { confirm: t('moderation.comments.index.confirm') } %>
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= paginate @comments %>
|
<%= paginate @comments %>
|
||||||
|
|||||||
@@ -11,20 +11,20 @@
|
|||||||
<%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %>
|
<%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %>
|
||||||
<p class="float-left js-check">
|
<p class="float-left js-check">
|
||||||
<%= t('shared.check') %>:
|
<%= 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[]" } %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="clear">
|
<table class="clear">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th><%= t("moderation.debates.index.headers.debate") %></th>
|
||||||
<%= t("moderation.debates.index.headers.debate") %>
|
<th><%= t("moderation.debates.index.headers.moderate") %></th>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<%= t("moderation.debates.index.headers.moderate") %>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
<% @debates.each do |debate| %>
|
<% @debates.each do |debate| %>
|
||||||
<tr id="debate_<%= debate.id %>">
|
<tr id="debate_<%= debate.id %>">
|
||||||
<td>
|
<td>
|
||||||
@@ -45,25 +45,24 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= submit_tag t('moderation.debates.index.block_authors'),
|
<%= submit_tag t('moderation.debates.index.block_authors'),
|
||||||
name: "block_authors",
|
name: "block_authors",
|
||||||
class: "button alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.debates.index.confirm')}
|
data: { confirm: t('moderation.debates.index.confirm') } %>
|
||||||
%>
|
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<%= submit_tag t('moderation.debates.index.hide_debates'),
|
<%= submit_tag t('moderation.debates.index.hide_debates'),
|
||||||
name: "hide_debates",
|
name: "hide_debates",
|
||||||
class: "button alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.debates.index.confirm')}
|
data: { confirm: t('moderation.debates.index.confirm') } %>
|
||||||
%>
|
|
||||||
<%= submit_tag t('moderation.debates.index.ignore_flags'),
|
<%= submit_tag t('moderation.debates.index.ignore_flags'),
|
||||||
name: "ignore_flags",
|
name: "ignore_flags",
|
||||||
class: "button success",
|
class: "button hollow",
|
||||||
data: {confirm: t('moderation.debates.index.confirm')}
|
data: { confirm: t('moderation.debates.index.confirm') } %>
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= paginate @debates %>
|
<%= paginate @debates %>
|
||||||
|
|||||||
@@ -9,22 +9,22 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form_tag moderate_moderation_proposal_notifications_path(request.query_parameters), method: :put do %>
|
<%= form_tag moderate_moderation_proposal_notifications_path(request.query_parameters), method: :put do %>
|
||||||
<p class="js-check">
|
<p class="float-left js-check">
|
||||||
<%= t('shared.check') %>:
|
<%= 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[]" } %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="clear">
|
<table class="clear">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th><%= t("moderation.proposal_notifications.index.headers.proposal_notification") %></th>
|
||||||
<%= t("moderation.proposal_notifications.index.headers.proposal_notification") %>
|
<th><%= t("moderation.proposal_notifications.index.headers.moderate") %></th>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<%= t("moderation.proposal_notifications.index.headers.moderate") %>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
<% @proposal_notifications.each do |proposal_notification| %>
|
<% @proposal_notifications.each do |proposal_notification| %>
|
||||||
<tr id="proposal_notification_<%= proposal_notification.id %>">
|
<tr id="proposal_notification_<%= proposal_notification.id %>">
|
||||||
<td>
|
<td>
|
||||||
@@ -37,29 +37,31 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<%= check_box_tag "proposal_notification_ids[]", proposal_notification.id, nil, id: "#{dom_id(proposal_notification)}_check" %>
|
<%= check_box_tag "proposal_notification_ids[]",
|
||||||
|
proposal_notification.id,
|
||||||
|
nil,
|
||||||
|
id: "#{dom_id(proposal_notification)}_check" %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= submit_tag t('moderation.proposal_notifications.index.block_authors'),
|
<%= submit_tag t('moderation.proposal_notifications.index.block_authors'),
|
||||||
name: "block_authors",
|
name: "block_authors",
|
||||||
class: "button hollow alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.proposal_notifications.index.confirm')}
|
data: { confirm: t('moderation.proposal_notifications.index.confirm') } %>
|
||||||
%>
|
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<%= submit_tag t('moderation.proposal_notifications.index.hide_proposal_notifications'),
|
<%= submit_tag t('moderation.proposal_notifications.index.hide_proposal_notifications'),
|
||||||
name: "hide_proposal_notifications",
|
name: "hide_proposal_notifications",
|
||||||
class: "button hollow alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.proposal_notifications.index.confirm')}
|
data: { confirm: t('moderation.proposal_notifications.index.confirm') } %>
|
||||||
%>
|
|
||||||
<%= submit_tag t('moderation.proposal_notifications.index.ignore_flags'),
|
<%= submit_tag t('moderation.proposal_notifications.index.ignore_flags'),
|
||||||
name: "ignore_flags",
|
name: "ignore_flags",
|
||||||
class: "button hollow",
|
class: "button hollow",
|
||||||
data: {confirm: t('moderation.proposal_notifications.index.confirm')}
|
data: { confirm: t('moderation.proposal_notifications.index.confirm') } %>
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= paginate @proposal_notifications %>
|
<%= paginate @proposal_notifications %>
|
||||||
|
|||||||
@@ -9,22 +9,22 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %>
|
<%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %>
|
||||||
<p class="js-check">
|
<p class="float-left js-check">
|
||||||
<%= t('shared.check') %>:
|
<%= 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[]" } %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="clear">
|
<table class="clear">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th><%= t("moderation.proposals.index.headers.proposal") %></th>
|
||||||
<%= t("moderation.proposals.index.headers.proposal") %>
|
<th><%= t("moderation.proposals.index.headers.moderate") %></th>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<%= t("moderation.proposals.index.headers.moderate") %>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
<% @proposals.each do |proposal| %>
|
<% @proposals.each do |proposal| %>
|
||||||
<tr id="proposal_<%= proposal.id %>">
|
<tr id="proposal_<%= proposal.id %>">
|
||||||
<td>
|
<td>
|
||||||
@@ -45,28 +45,26 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= submit_tag t('moderation.proposals.index.block_authors'),
|
<%= submit_tag t('moderation.proposals.index.block_authors'),
|
||||||
name: "block_authors",
|
name: "block_authors",
|
||||||
class: "button hollow alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.proposals.index.confirm')}
|
data: { confirm: t('moderation.proposals.index.confirm') } %>
|
||||||
%>
|
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<%= submit_tag t('moderation.proposals.index.hide_proposals'),
|
<%= submit_tag t('moderation.proposals.index.hide_proposals'),
|
||||||
name: "hide_proposals",
|
name: "hide_proposals",
|
||||||
class: "button hollow alert",
|
class: "button hollow alert",
|
||||||
data: {confirm: t('moderation.proposals.index.confirm')}
|
data: { confirm: t('moderation.proposals.index.confirm') } %>
|
||||||
%>
|
|
||||||
<%= submit_tag t('moderation.proposals.index.ignore_flags'),
|
<%= submit_tag t('moderation.proposals.index.ignore_flags'),
|
||||||
name: "ignore_flags",
|
name: "ignore_flags",
|
||||||
class: "button hollow",
|
class: "button hollow",
|
||||||
data: {confirm: t('moderation.proposals.index.confirm')}
|
data: { confirm: t('moderation.proposals.index.confirm') } %>
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= paginate @proposals %>
|
<%= paginate @proposals %>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user