From e9b99408f7fd193d7fc7d6501ab52f5246b268bd Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 7 Jan 2020 11:21:15 -0600 Subject: [PATCH] /reports/upload_tags: convert to table builder. --- app/views/reports/upload_tags.html.erb | 32 ++++++++++---------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/app/views/reports/upload_tags.html.erb b/app/views/reports/upload_tags.html.erb index 3fe930242..b96570128 100644 --- a/app/views/reports/upload_tags.html.erb +++ b/app/views/reports/upload_tags.html.erb @@ -4,26 +4,18 @@ <%= render "posts/partials/common/inline_blacklist" %> - - - - - - - - - - <% @upload_reports.each do |upload_report| %> - - - - - <% end %> - -
Post IDTags added by uploaderTags changed by other users
<%= PostPresenter.preview(upload_report.becomes(Post), show_deleted: true, tags: "user:#{upload_report.uploader.name}") %> - <%= TagSetPresenter.new(upload_report.uploader_tags_array).inline_tag_list_html %> - <%= diff_to_current(upload_report) %> -
+ <%= table_for @upload_reports do |t| %> + <% t.column "Post ID", width: "10%" do |upload_report| %> + <%= PostPresenter.preview(upload_report.becomes(Post), show_deleted: true, tags: "user:#{upload_report.uploader.name}") %> + <% end %> + <% t.column "Tags added by uploader", width: "45%" do |upload_report| %> + <%= TagSetPresenter.new(upload_report.uploader_tags_array).inline_tag_list_html %> + <% end %> + <% t.column "Tags added by uploader", width: "45%" do |upload_report| %> + <%= diff_to_current(upload_report) %> + <% end %> + <% end %> + <%= numbered_paginator(@upload_reports) %>