The float property was removed in commitb71c61e40, but then it was added again in commit4a6313fed. It might have been necessary to do so back then because we had a `select` field instead of the links to set the order, but now, instead of making them float on the left and then make the next element clear the floats, we can do nothing and obtain the same results.
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
<%= render Moderation::Shared::IndexComponent.new(@comments) do %>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("moderation.comments.index.headers.comment") %></th>
|
|
<th><%= t("moderation.comments.index.headers.moderate") %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @comments.each do |comment| %>
|
|
<tr id="comment_<%= comment.id %>">
|
|
<td>
|
|
<%= comment.commentable_type.constantize.model_name.human %> -
|
|
<%= link_to comment.commentable.title, commentable_path(comment) %>
|
|
<br>
|
|
<span class="date"><%= l comment.updated_at.to_date %></span>
|
|
<span class="bullet"> • </span>
|
|
<%= comment.flags_count %><span class="icon-flag flag-disable"></span>
|
|
<span class="bullet"> • </span>
|
|
<%= comment.author.username %>
|
|
<br>
|
|
<div class="moderation-description">
|
|
<%= comment.body %>
|
|
</div>
|
|
</td>
|
|
<td class="text-center">
|
|
<%= check_box_tag "comment_ids[]", comment.id, nil, id: "#{dom_id(comment)}_check" %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% end %>
|