Sha256: 905250f21ef06e8d7c1f8985df4292ea377f9e8c8ae8fbea9d07dbcf2fcf4f88
Contents?: true
Size: 1.08 KB
Versions: 110
Compression:
Stored size: 1.08 KB
Contents
# # ishapi / features / _index # resource ||= site if defined? site resource ||= city if defined? city json.n_features features.count json.features do json.array! features.limit( resource.n_features ) do |feature| json.name feature.name unless feature.name.blank? json.subhead feature.subhead unless feature.subhead.blank? json.link_path feature.link_path unless feature.link_path.blank? json.inner_html feature.inner_html unless feature.inner_html.blank? json.photo_url feature.image_path unless feature.image_path.blank? json.created_at feature.created_at if feature.report r = feature.report json.name r.name json.subhead r.subhead json.reportname r.name_seo if r.photo json.photo_url r.photo.photo.url( :thumb ) end end if feature.gallery r = feature.gallery json.name r.name json.subhead r.subhead json.galleryname r.galleryname if r.photos[0] json.photo_url r.photos[0].photo.url( :thumb ) end end end end
Version data entries
110 entries across 110 versions & 1 rubygems