Sha256: 18493bb3084ca61f4f976c37716c24efe290c600ac9d2abbddda731d41d90e62

Contents?: true

Size: 835 Bytes

Versions: 12

Compression:

Stored size: 835 Bytes

Contents

# frozen_string_literal: true

json.key_format! camelize: :lower
json.deep_format_keys!

json.id    page.id
json.title page.title || page.default_title
json.path  page.path || page.default_path
json.path_hash page.path_hash
json.visible page.visible

json.seo_title page.seo_title
json.meta_description page.meta_description
json.og_title page.og_title
json.og_description page.og_description
json.og_image_url page.og_image_url

json.preview_url services.get_page_fullpath.call(page: page, preview_mode: true, locale: content_locale)
json.live_url services.get_page_fullpath.call(page: page, preview_mode: false, locale: content_locale)
json.section_names services.get_page_section_names.call(page: page)
json.sections services.get_page_sections.call(page: page)
json.lock_version page.lock_version
json.translated page.path.present?

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
maglevcms-1.7.3 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.7.2 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.7.1 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.7.0 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.6.1 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.6.0 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.5.1 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.4.0 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.3.0 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.2.2 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.2.1 app/views/maglev/api/pages/_show.json.jbuilder
maglevcms-1.2.0 app/views/maglev/api/pages/_show.json.jbuilder