Sha256: 665d82ce85bf3f8aa4cb833be7cc08051417230d4ed12f125cacd2cf12ba9ca8

Contents?: true

Size: 744 Bytes

Versions: 13

Compression:

Stored size: 744 Bytes

Contents

#
# ishapi / reports / show
#

key = [ @report, params.permit! ]
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.username
    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

13 entries across 13 versions & 1 rubygems

Version Path
ishapi-0.1.8.42 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.41 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.40 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.39 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.38 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.37 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.36 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.35 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.34 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.33 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.32 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.31 app/views/ishapi/reports/show.jbuilder
ishapi-0.1.8.30 app/views/ishapi/reports/show.jbuilder