<% if presenter.has_uploads? %>
  <div class="box user-uploads">
    <h2>
      <%= link_to "Uploads", posts_path(:tags => "user:#{user.name}") %>
    </h2>
    <div>
      <%= post_previews_html(presenter.uploads, tags: "user:#{user.name}") %>
    </div>
  </div>
<% end %>

<% if presenter.has_favorites? && policy(user).can_see_favorites? %>
  <div class="box user-favorites">
    <h2>
      <%= link_to "Favorites", posts_path(tags: "ordfav:#{user.name}") %>
    </h2>
    <div>
      <%= post_previews_html(presenter.favorites, tags: "ordfav:#{user.name}") %>
    </div>
  </div>
<% end %>

<% if false %>
  <% presenter.saved_search_labels.each do |label| %>
    <div class="box user-saved-search" data-label="<%= label %>">
      <h2>
        Saved Search: <%= link_to label, posts_path(:tags => "search:#{label}") %>
        (<%= link_to "manage", saved_searches_path(label: label) %>)
      </h2>

      <div class="box">
        <%= post_previews_html(presenter.posts_for_saved_search_category, tags: "search:#{label}") %>
      </div>
    </div>
  <% end %>
<% end %>
