mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
29 lines
1004 B
Plaintext
29 lines
1004 B
Plaintext
<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.cover_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> |