Sha256: d4163c194c709b43306f8786e5c348786adf26c370d0a16ce3d499641b15595a

Contents?: true

Size: 760 Bytes

Versions: 9

Compression:

Stored size: 760 Bytes

Contents

#
# ishapi / reports / show
#

params.permit!
key = [ @report, params ]
json.cache! key do
  json.report do
    json.id          @report.id.to_s
    json.name        @report.name
    json.reportname  @report.name_seo
    if @report.photo
      json.photo_url   @report.photo.photo.url( :small ) 
      json.thumb_url   @report.photo.photo.url( :thumb )
    end

    # @TODO: move this to meta
    json.created_at  @report.created_at.strftime('%Y%m%d')
    json.updated_at  @report.updated_at.strftime('%Y%m%d')
    json.username    @report.user_profile.name
    json.cityname    @report.city.cityname if @report.city
    json.tagname     @report.tag.name_seo  if @report.tag

    json.subhead     @report.subhead
    json.description @report.descr

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ishapi-0.1.8.53 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.52 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.49 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.48 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.47 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.46 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.45 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.44 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.43 app/views/ishapi/reports/show.jbuilder