-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathedit.json.jbuilder
More file actions
50 lines (41 loc) · 1.95 KB
/
edit.json.jbuilder
File metadata and controls
50 lines (41 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
json.data do
json.site do
json.sectionsContent sections_content(current_site, @sections, @section_definitions)
end
json.page do
json.(@page, :id, :title, :seo_title, :meta_description, :meta_keywords, :meta_robots, :listed, :published)
json.slug @page.slug if display_slug?(@page)
json.fullpath nice_preview_page_path(@page)
json.contentEntryId @page.content_entry&.id
json.sectionsContent sections_content(@page, @sections, @section_definitions)
json.sectionsDropzoneContent sections_dropzone_content(@page)
end
json.sectionDefinitions @section_definitions
json.editableElements @editable_elements
json.sections do
json.all sections_by_id(@sections, @page)
json.top @sections[:top]
json.bottom @sections[:bottom]
json.dropzone @sections[:dropzone]
end
json.locale current_content_locale
json.locales current_site.locales
json.uiLocale I18n.locale
json.contentTypes content_types_with_templates(current_site)
end
json.urls do
json.base pages_path(current_site)
json.load edit_page_content_path(current_site, @page)
json.save page_content_path(current_site, @page, format: :json)
json.editableElements editable_elements_path(current_site, @page)
json.settings edit_page_path(current_site, @page)
json.preview preview_page_path(@page, mounted_on: true)
json.localized_previews localized_preview_page_paths(@page, mounted_on: true)
json.thumbnail root_path + '_image_thumbnail'
json.assets content_assets_path(current_site, format: :json)
json.bulkAssetUpload bulk_create_content_assets_path(current_site, :json)
json.resources search_for_resources_path(current_site, format: :json)
json.loaderImage image_url('locomotive/editor_loader.gif')
json.deadendImage image_url('locomotive/deadend.png')
json.contentEntries content_entries_paths_by_slug(current_site)
end