Sha256: 415295e8faa85b22a8fc70dbdb5a249417203a5abf6b2cc3e74eff301503b6d4
Contents?: true
Size: 1.68 KB
Versions: 4
Compression:
Stored size: 1.68 KB
Contents
json.key_format!(camelize: :lower) json.config do json.file_url_templates do config_file_url_templates_seed(json, entry_config) end json.file_model_types do config_file_model_types_seed(json, entry_config) end json.pretty_url pretty_entry_url(entry) json.share_url_templates share_provider_url_templates json.default_file_rights entry.account.default_file_rights json.legal_info do theming = entry.theming json.imprint do json.label raw(theming.imprint_link_label) json.url theming.imprint_link_url end json.copyright do json.label raw(theming.copyright_link_label) json.url theming.copyright_link_url end json.privacy do json.label I18n.t('pageflow.public.privacy_notice') json.url entry_privacy_link_url(entry) end end end unless options[:skip_collections] json.collections do json.entries do json.array!([entry]) do |entry| json.call(entry, :id, :share_providers, :share_url, :credits) json.permaId entry.id # required as keyAttribute in EntryStateProvider end end json.chapters do json.array!(chapters) do |chapter| json.partial! 'pageflow_scrolled/chapters/chapter', chapter: chapter end end json.sections do json.array!(sections) do |section| json.partial! 'pageflow_scrolled/sections/section', section: section end end json.content_elements do json.array!(content_elements) do |content_element| json.partial! 'pageflow_scrolled/content_elements/content_element', content_element: content_element end end files_json_seed(json, entry) unless options[:skip_files] end end
Version data entries
4 entries across 4 versions & 1 rubygems