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-13.5.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.4.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.3.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.2.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.6.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.1.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.5.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.4.1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.rc1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.4.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.3.0 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta7 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta6 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta5 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta4 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta3 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta2 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-13.0.0.beta1 app/views/pageflow/page_types/_page_type.json.jbuilder
pageflow-12.2.0 app/views/pageflow/page_types/_page_type.json.jbuilder