Sha256: 3cf41ea400618bfe4ce039957b9d4a7114ff849d94775424e0af39b6efc2f137

Contents?: true

Size: 668 Bytes

Versions: 3

Compression:

Stored size: 668 Bytes

Contents

<%= cambium_page_title(admin_table.title) %>

<div id="page-content" class="tiles">
  <% @collection.each do |obj| %>
    <article class="tile <%= obj.ext %>" data-id="<%= obj.id %>"
             data-filename="<%= obj.upload.name %>"
             data-image="<%= obj.image? %>"
             data-thumb="<%= obj.upload.thumb('400x400#').url %>"
             data-url="<%= obj.upload.url %>">
      <%= link_to(cambium.edit_admin_document_path(obj)) do %>
        <%= image_tag(obj.thumb_url) if obj.has_thumb? %>
        <h3><%= obj.title %></h3>
      <% end %>
    </article>
  <% end %>


  <div class="pagination">
    <%= paginate @collection  %>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cambium-1.3.2 app/views/cambium/admin/documents/index.html.erb
cambium-1.3.1 app/views/cambium/admin/documents/index.html.erb
cambium-1.3.0 app/views/cambium/admin/documents/index.html.erb