Sha256: b2a0e747aad66c95546eca6a4da70e35f664c59ebf8e694bf8dc666184e74290

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

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

<% case Ecm::Pictures::Configuration.render_gallery_index_as %>
<% when :thumbnail %>
  <div class="row">
    <% @galleries.each do |g| %>
      <%= render :partial => 'ecm/pictures/galleries/gallery_for_index', :locals => { :gallery => g } %>
    <% end %>
  </div>
<% when :media_object %>
  <%= render_collection(@galleries, Ecm::Pictures::Gallery, 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

2 entries across 2 versions & 1 rubygems

Version Path
ecm_pictures2-3.0.1 app/views/ecm/pictures/galleries/index.html.erb
ecm_pictures2-3.0.0 app/views/ecm/pictures/galleries/index.html.erb