Sha256: 44417e2340691a54faa80846a51b7ed9f11a1377b18bcb6b4684d3364b8b2a38

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

#
# ishapi / newsitems / _index
#

json.newsitems do
  json.array! newsitems do |item|
    if item.gallery
      json.item_type  'gallery' #@TODO: should be a constant
      json.name        item.gallery.name
      json.galleryname item.gallery.galleryname
      json.partial!   'ishapi/photos/index', :photos => item.gallery.photos
    end
    json.descr item.descr
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ishapi-0.1.8.6 app/views/ishapi/newsitems/_index.jbuilder
ishapi-0.1.8.5 app/views/ishapi/newsitems/_index.jbuilder
ishapi-0.1.8.4 app/views/ishapi/newsitems/_index.jbuilder
ishapi-0.1.8.3 app/views/ishapi/newsitems/_index.jbuilder
ishapi-0.1.8.2 app/views/ishapi/newsitems/_index.jbuilder
ishapi-0.1.8 app/views/ishapi/newsitems/_index.jbuilder
ishapi-0.1.6 app/views/ishapi/newsitems/_index.jbuilder