Sha256: af563bec56691c0531b9b3642542b8d4c53ba0d9ea91ccf36e5280fb2f0f5ad2

Contents?: true

Size: 913 Bytes

Versions: 11

Compression:

Stored size: 913 Bytes

Contents

 
#
# ishapi / sites / show
#

key = [ @site, params.permit! ]
json.cache! key do
  json.site do
    json.id        @site.id.to_s
    json.domain    @site.domain
    json.lang      @site.lang
    json.langs     @langs
    json.title     @site.title
    json.subhead   @site.subhead

    json.is_ads_enabled         @site.is_ads_enabled
    json.play_videos_in_preview @site.play_videos_in_preview
    json.newsitems_per_page     @site.newsitems_per_page

    json.partial! 'ishapi/features/index',  :features  => @site.features, :resource => @site
    json.partial! 'ishapi/galleries/index', :galleries => @galleries,     :resource => @site
    json.partial! 'ishapi/newsitems/index', :newsitems => @newsitems,     :resource => @site
    json.partial! 'ishapi/reports/index',   :reports   => @reports,       :resource => @site
    json.partial! 'ishapi/videos/index',    :videos    => @site.videos
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ishapi-0.1.8.64 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.63 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.62 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.61 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.60 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.59 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.58 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.57 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.56 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.55 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.54 app/views/ishapi/sites/show.jbuilder