Sha256: f0d6731797516d2b5d8bb9660ffc52666c4798d8e47ac0ba7b49e2c7d2fc650a

Contents?: true

Size: 634 Bytes

Versions: 13

Compression:

Stored size: 634 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.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/newsitems/index', :newsitems => @newsitems
    json.partial! 'ishapi/videos/index',    :videos    => @site.videos
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ishapi-0.1.8.47 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.46 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.45 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.44 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.43 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.42 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.41 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.40 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.39 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.38 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.37 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.36 app/views/ishapi/sites/show.jbuilder
ishapi-0.1.8.35 app/views/ishapi/sites/show.jbuilder