<% pages.each do |page| %> <% content = page.content %> <% next unless (current_user || User.new).can_read?(content) %>
<%= image_tag content.first_public_image, class: 'activator', style: "height: 300px;" %>
<%= link_to content.name, content %> more_vert

Submitted by <%= link_to content.user, class: "#{User.text_color}" do %> <%= content.user.display_name %> <% end %>

<%= link_to content.name, content %> close <% if page.explanation? %>
<%= simple_format page.explanation %>
<% end %>
  • <%= link_to content, class: "#{content.class.text_color}" do %> arrow_right View <%= content.name %>'s notebook page <% end %>
  • <%= link_to page_collection_submissions_by_user_path(page_collection_id: @page_collection.id, user_id: page.user_id), class: "#{PageCollection.text_color}" do %> arrow_right View more submissions from this user <% end %>
  • <%= link_to page_collection_submissions_by_user_path(page_collection_id: @page_collection.id, user_id: page.user_id), class: "#{User.text_color}" do %> arrow_right View <%= page.user.display_name %>'s profile <% end %>
  • <% if user_signed_in? && current_user == @page_collection.user %>
  •  
  •  
  • <%= link_to 'Remove from collection', page_collection_submission_path(page), method: :delete, class: 'red-text', data: { confirm: "Are you sure you want to remove this page from this collection?" } %>
  • <% end %>
<% end %>