Sha256: 5c0d39b8d594cb0b856cd0fbe6a3e158d5ab6f7e12c80fd826f147a794f7b17b

Contents?: true

Size: 875 Bytes

Versions: 8

Compression:

Stored size: 875 Bytes

Contents

- indices ||= local_assigns[:indices]
#gallery.clearfix
  #gallery_wrap.clearfix
    %a{:class => "#{'no_back ' unless (indices.size > 1)}backward browse left"}
    %a{:class => "#{'no_back ' unless (indices.size > 1)}forward browse right"}
    #gallery_wrap_inner
      =(render :partial => 'indices/show', :object => indices.first, :as => :index)
  .scroll_nav.clearfix
    %a{:class => "#{'no_back ' unless (indices.size > 4)}prev browse left"}
    .scrollable.corner-all.nav
      .items.ajax-nav
        - indices.each_with_index do |index, i|
          =raw '<div>' if i%4 == 0
          = link_to image_tag(index.photo.try(:url,:thumb), :alt => index.title), index, :class => "button#{' current' if index.id == indices.first.id}"
          =raw '</div>' if (i%4 == 3 || i == indices.size-1)
    %a{:class => "#{'no_back ' unless (indices.size > 4)}next browse right"}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sbdevcore-0.3.10 app/views/galleries/_show.html.haml
sbdevcore-0.3.9 app/views/galleries/_show.html.haml
sbdevcore-0.3.8 app/views/galleries/_show.html.haml
sbdevcore-0.3.7 app/views/galleries/_show.html.haml
sbdevcore-0.3.6 app/views/galleries/_show.html.haml
sbdevcore-0.3.5 app/views/galleries/_show.html.haml
sbdevcore-0.3.4 app/views/galleries/_show.html.haml
sbdevcore-0.3.3 app/views/galleries/_show.html.haml