Sha256: 182b9c21af0db63c363e1181a7c61f7bfc38f85869ec5970535eec30c683e56a

Contents?: true

Size: 603 Bytes

Versions: 36

Compression:

Stored size: 603 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.slug
    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

36 entries across 36 versions & 1 rubygems

Version Path
ishapi-0.1.8.172 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.171 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.169 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.168 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.167 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.166 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.165 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.164 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.162 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.161 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.160 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.159 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.158 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.157 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.156 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.155 app/views/ishapi/reports/_index.jbuilder