Sha256: 385d38c2f42e4ce3ce9f349ec2c10b4d88f052f49c60f8cf8f7d948e2471bb25

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

<h1><%= Ecm::Pictures::PictureGallery.model_name.human(:count => :other) %></h1>

<% case Ecm::Pictures::Configuration.render_picture_gallery_index_as %>
<% when :thumbnail %>
  <div class="row">
    <% @picture_galleries.each do |pg| %>
      <%= render :partial => 'ecm/pictures/picture_galleries/picture_gallery_for_index', :locals => { :picture_gallery => pg } %>
    <% end %>
  </div>
<% when :media_object %>
  <%= render_collection(@picture_galleries, Ecm::Pictures::PictureGallery, as: :bootstrap_media_object) do |list| %>
    <h4><%= list.resource.name %>
      <% if list.resource.respond_to?(:tag_list) %>
        <span class="tags">
          <% list.resource.tag_list.each do |tag| %>
            <span class="label label-primary"><%= tag %></span>
          <% end %>
        </span>
      <% end %>
    </h4>
    <%= list.media_object title: '', body: mu(list.resource, :description), image_url: list.resource.pictures.first.image.url(:default_thumb) %>
  <% end %>
<% end %>

<div class="well page-actions">
  <%= link_to(t('ecm.pictures.views.actions.back'), main_app.root_path, class: 'btn btn-default') %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecm_pictures2-2.1.4 app/views/ecm/pictures/picture_galleries/index.html.erb
ecm_pictures2-2.1.3 app/views/ecm/pictures/picture_galleries/index.html.erb
ecm_pictures2-2.1.2 app/views/ecm/pictures/picture_galleries/index.html.erb
ecm_pictures2-2.1.1 app/views/ecm/pictures/picture_galleries/index.html.erb