Sha256: e06bf646afbc65d941981e6eb3c719a1a7ced85708e136bd61e6bccecd351ea9

Contents?: true

Size: 531 Bytes

Versions: 54

Compression:

Stored size: 531 Bytes

Contents

json.(page_type,
      :name,
      :translation_key_prefix,
      :translation_key,
      :help_entry_translation_key,
      :description_translation_key,
      :category_translation_key)

json.thumbnail_candidates(page_type.thumbnail_candidates) do |candidate|
  json.(candidate, :attribute, :file_collection)

  if (condition = candidate[:unless] || candidate[:if])
    json.condition do
      json.(condition, :attribute, :value)
      json.negated(!!candidate[:unless])
    end
  end
end

page_type_json_seed(json, page_type)

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-17.0.3 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-17.0.2 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-17.0.1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-17.0.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-16.2.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-16.1.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-16.0.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.8.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-14.5.2 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.7.1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.7.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.6.1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.6.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.5.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.4.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.3.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.2.2 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.2.1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-15.2.0 app/views/pageflow/page_types/_page_type.json.jbuilder