Sha256: cc1e0f0fb7bcdb94f77ece57ba0b7d411df47158236bdea56a5030c273ec34f2

Contents?: true

Size: 607 Bytes

Versions: 33

Compression:

Stored size: 607 Bytes

Contents

#
# ishapi / reports / _index
#

json.n_reports reports.count
json.reports do
  json.array! reports do |report|
    # json.id          report.id.to_s
    json.created_at  report.created_at
    json.name        report.name
    json.slug        report.name_seo
    json.description report.descr

    if report.photo
      json.photo do
        json.thumb_url report.photo.photo.url :thumb
        json.small_url report.photo.photo.url :small
        json.large_url report.photo.photo.url :large
      end
    end

    json.partial! 'ishapi/tags/index', tags: report.tags unless report.tags.blank?

  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
ishapi-0.1.8.154 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.153 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.151 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.150 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.149 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.148 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.147 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.146 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.145 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.144 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.143 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.142 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.141 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.140 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.139 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.138 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.137 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.136 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.135 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.134 app/views/ishapi/reports/_index.jbuilder