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.194 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.193 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.192 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.191 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.190 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.189 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.188 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.187 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.185 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.184 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.183 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.182 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.181 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.180 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.178 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.177 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.176 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.175 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.174 app/views/ishapi/reports/_index.jbuilder
ishapi-0.1.8.173 app/views/ishapi/reports/_index.jbuilder