<% if @content.any? %>
  <div class="collection with-header hoverable">
    <div class="collection-header blue lighten-1 white-text">
      <div style="padding: 5px 10px">
        Public pages
      </div>
    </div>
    <% @tabs.each do |tab| %>
      <% content_type_class = @user.send(tab).build.class %>
      <%= link_to send("#{tab}_user_path", { id: @user.id }), class: "collection-item #{content_type_class.text_color}" do %>
        <%= pluralize @content[tab].length, tab.to_s.singularize %>
        <span class="secondary-content">
          <i class="material-icons <%= content_type_class.text_color %>"><%= content_type_class.icon %></i>
        </span>
        <div style="clear: both"></div>
      <% end %>
    <% end %>
  </div>
<% end %>
