Method: ArGalleryRenderer#default

Defined in:
app/renderers/ar_gallery_renderer.rb

#defaultObject

Default ArGallery render method. It will simply put thumbnail pictures side by side and open big picture when clicked on thumbnail.



51
52
53
54
55
56
57
58
59
# File 'app/renderers/ar_gallery_renderer.rb', line 51

def default
  html = '<div class="picture-gallery"><ul>' + new_menu()
  ArGallery.where(doc_id: @opts[:doc_id], doc_type: @opts[:doc_type], active: true).order(:order).each do |picture|
    html += "<li>" + edit_menu(picture)
    html += @env.link_to(@env.image_tag(picture.thumbnail, title: picture.title), picture.picture)
    html += '</li>'
  end
  html += '</ul></div>'
end