Sha256: 904786710a8105e61859e8a86671e90bb264c49c3cfd74ade173821ace4f5a66

Contents?: true

Size: 627 Bytes

Versions: 33

Compression:

Stored size: 627 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

if page_type.json_seed_template
  json.partial!(:template => page_type.json_seed_template, :locals => {:page_type => page_type})
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
pageflow-12.1.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.4 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.3 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.2 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc7 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc6 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc5 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc4 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc3 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc2 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.0.0.rc1 app/views/pageflow/page_types/_page_type.json.jbuilder