/reports/upload_tags: convert to table builder.

This commit is contained in:
evazion
2020-01-07 11:21:15 -06:00
parent 1ab6a353ca
commit e9b99408f7

View File

@@ -4,26 +4,18 @@
<%= render "posts/partials/common/inline_blacklist" %> <%= render "posts/partials/common/inline_blacklist" %>
<table class="striped"> <%= table_for @upload_reports do |t| %>
<thead> <% t.column "Post ID", width: "10%" do |upload_report| %>
<tr> <%= PostPresenter.preview(upload_report.becomes(Post), show_deleted: true, tags: "user:#{upload_report.uploader.name}") %>
<th width="10%">Post ID</th> <% end %>
<th width="45%">Tags added by uploader</th> <% t.column "Tags added by uploader", width: "45%" do |upload_report| %>
<th width="45%">Tags changed by other users</th> <%= TagSetPresenter.new(upload_report.uploader_tags_array).inline_tag_list_html %>
</tr> <% end %>
</thead> <% t.column "Tags added by uploader", width: "45%" do |upload_report| %>
<tbody> <%= diff_to_current(upload_report) %>
<% @upload_reports.each do |upload_report| %> <% end %>
<tr> <% end %>
<td><%= PostPresenter.preview(upload_report.becomes(Post), show_deleted: true, tags: "user:#{upload_report.uploader.name}") %></td>
<td>
<%= TagSetPresenter.new(upload_report.uploader_tags_array).inline_tag_list_html %>
</td>
<td><%= diff_to_current(upload_report) %>
</tr>
<% end %>
</tbody>
</table>
<%= numbered_paginator(@upload_reports) %> <%= numbered_paginator(@upload_reports) %>
</div> </div>
</div> </div>