Sha256: b1f38c1962fbb85530314056d95ba420a2cec822355cadca8bd8883df5300aef

Contents?: true

Size: 754 Bytes

Versions: 38

Compression:

Stored size: 754 Bytes

Contents

json.partial!(partial: 'pageflow/files/file',
              object: file,
              locals: {file_type: file_type})

json.call(file,
          :state,
          :rights,
          :usage_id)

if file.can_upload?
  json.direct_upload_config(file.direct_upload_config)
end

json.retryable(file.retryable?)
json.file_name(file.file_name)

if file.url.present?
  json.url(file.url)
end

if file.original_url.present?
  json.original_url(file.original_url)
end

if file_type.editor_partial.present?
  json.partial!(object: file, partial: file_type.editor_partial)
end

if file.respond_to?(:thumbnail_url)
  json.thumbnail_url(asset_path(file.thumbnail_url(:thumbnail)))
  json.link_thumbnail_url(asset_path(file.thumbnail_url(:link_thumbnail_large)))
end

Version data entries

38 entries across 38 versions & 1 rubygems

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