Sha256: d947eb70a0a0c37bd53001a0d27faf673b7c8a25412374681157e05ee7d7c024
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
- if asset.file.file? = f.fields_for field.name, asset do |a| - if allow_position .handle.icon.float_left .file_delete.float_right = a.check_box :_destroy = a.label :_destroy, t(asset.is_image? ? 'bhf.helpers.image.delete' : 'bhf.helpers.file.delete') - return_to = {return_to: (edit_entry_path(@platform.name, f.object) unless @platform.return_to == false)} - if asset.is_image? = image_tag(find_smallest_size_url_for_file(asset.file), class: 'uploaded_image float_left') = link_to t('ksk.asset.image_preview.button.edit'), edit_entry_path('assets', asset.id, return_to), class: 'alt_button float_right' - else = link_to asset.file_file_name, asset.file.url, class: 'uploaded_file float_left' - if asset.has_preview? = link_to t('ksk.asset.file_preview.button.edit'), edit_entry_path('previews', asset.preview, return_to), class: 'alt_button float_right' - else = link_to t('ksk.asset.file_preview.button.create'), new_entry_path('previews', {asset_id: asset.id}.merge(return_to)), class: 'alt_button float_right' .clear
Version data entries
3 entries across 3 versions & 1 rubygems