<div id="collections_panel" class="row panel">
  <div class="row">
    <div class="col s12 m10 offset-m1">
      <%= render partial: 'notice_dismissal/messages/09' %>

      <% content.page_collection_submissions.accepted.each do |submission| %>
        <% collection = submission.page_collection %>
        <%= link_to collection do %>
          <div class="hoverable card">
            <div class="card-image">
              <%= image_tag collection.first_public_image, style: 'max-height: 300px;' %>
              <span class="card-title">
                <%= collection.title %>
                <br />
                <small>
                  <% if collection.subtitle? %>
                    <%= collection.subtitle %>
                  <% else %>
                    <%= @content.name %> is included in this collection
                  <% end %>              
                </small>
              </span>
            </div>
          </div>
        <% end %>
      <% end %>
    </div>
  </div>
</div>