<div id="c-upload-tags-report">
  <div id="a-show">
    <h1>Upload tag changes report for <%= @user.pretty_name %></h1>

    <%= render "posts/partials/common/inline_blacklist" %>

    <table class="striped">
      <thead>
        <tr>
        <th width="10%">Post ID</th>
        <th width="45%">Tags added by uploader</th>
        <th width="45%">Tags changed by other users</th>
        </tr>
        </thead>
      <tbody>
        <% @upload_reports.each do |upload_report| %>
          <tr>
            <td><%= PostPresenter.preview(upload_report, show_deleted: true, tags: "user:#{upload_report.uploader_name}") %></td>
            <td>
              <% upload_report.uploader_tags_array.each do |tag_name| %>
                <span class="category-<%= Tag.category_for(tag_name) %>">
                  <%= link_to(tag_name.tr("_", " "), posts_path(:tags => tag_name)) %>
                </span>
              <% end %>
            </td>
            <td><%= diff_to_current(upload_report) %>
          </tr>
        <% end %>
      </tbody>
    </table>
    <%= numbered_paginator(@upload_reports) %>
    </div>
</div>


<% content_for(:page_title) do %>
  Upload tag changes for <%= @user.pretty_name %> - <%= Danbooru.config.app_name %>
<% end %>
