Sha256: 32271a99e70ac0af8168d07617c831a0d3d3f20d644a76f33be10de44944aa0c

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

<div class="gallery_list_slots <%= css_list_klass %> clearfix">

  <% if section_title.present? %>
      <h3 class="section_title h3_for_gallery_list_slots"><%= section_title %></h3>
  <% end %>

  <% count.times do |i| %>
      <% gallery = list[i] %>
      <% title = gallery.title %>
      <% image = nil %>
      <% a_klass = 'nil_img' %>
      <% image = gallery.gphotos.first.image.send(thumb_size) if gallery.gphotos.count > 0 %>
      <% a_klass = '' if gallery.gphotos.count > 0 %>
      <% url = my_url_for_gallery(gallery) %>

      <div class="slot_item <%= css_item_klass %>">
        <div class="photo">
          <%= render_image_link_lazy({
                                             :alt_image => title,
                                             :image => image,
                                             :a_href => url,
                                             :a_class => a_klass
                                     }) %>
        </div>
        <div class="title">
          <%= link_to title, url, :title => title %>
        </div>
      </div>
  <% end %>

</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c80_album_gallery-0.1.0.4 app/views/c80_album_gallery/_flow_galleries_slots.html.erb
c80_album_gallery-0.1.0.3 app/views/c80_album_gallery/_flow_galleries_slots.html.erb