18 lines
618 B
Ruby
18 lines
618 B
Ruby
json.package @p.name
|
|
|
|
json.screenshots @p.approved_screenshots do |s|
|
|
json.thumb_image_url "#{request.protocol}#{request.host_with_port}#{thumbnail_with_id_path(
|
|
@p, s.id
|
|
)}"
|
|
json.small_image_url "#{request.protocol}#{request.host_with_port}#{small_image_with_id_path(
|
|
@p, s.id
|
|
)}"
|
|
json.screenshot_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path(
|
|
@p, s.id
|
|
)}"
|
|
# backwards-compatibility for the UDD
|
|
# json.large_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path(
|
|
# @p, s.id
|
|
# )}"
|
|
json.version s.version
|
|
end
|