Sha256: 84c7a459ea7ba5fbd411d2afd94b22c82c2708b57c9f50e1e20967f9764e0b32

Contents?: true

Size: 597 Bytes

Versions: 25

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

json.array! @pages do |page|
  json.id    page.id
  json.title page.title || page.default_title
  json.path  page.path || page.default_path
  json.visible page.visible
  json.static page.static?

  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.section_names services.get_page_section_names.call(page: page)
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
maglevcms-1.8.0 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.7.3 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.7.2 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.7.1 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.7.0 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.6.1 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.6.0 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.5.1 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.4.0 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.3.0 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.2.2 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.2.1 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.2.0 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.7 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.6 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.5 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.4 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.3 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.2 app/views/maglev/api/pages/index.json.jbuilder
maglevcms-1.1.1 app/views/maglev/api/pages/index.json.jbuilder