Sha256: 12328b5da5d23d2741c555a5858dee495cd67479f52c9b48ae4213b282d1525a
Contents?: true
Size: 1.01 KB
Versions: 15
Compression:
Stored size: 1.01 KB
Contents
%label.asset-label= asset.to_s.titleize .asset-field = f.hidden_field "#{asset}_id", class: 'asset-id-field' .thumbnail - if f.object.send(asset) = image_tag url_for(f.object.send(asset).url(:_thumbnail)) - else = image_tag default_asset_thumbnail(f.object.send(asset)) .details .asset-info - if f.object.send(asset) = f.object.send(asset).display_name - else No asset selected. .browse-button-holder{:class => ('with-remove' if defined?(remove_association) && remove_association)} .browse-button = link_to 'Browse', new_item_asset_path, class: 'btn btn-comp browse', data: {'modal-remote' => true, 'modal-title' => "Select #{asset.to_s.titleize}", 'modal-handler' => 'Tenon.features.AssetAttachment'} - if defined?(remove_association) && remove_association %small or = link_to_remove_association "remove", f - else %small or = link_to "remove", '#', class: 'remove-asset'
Version data entries
15 entries across 15 versions & 1 rubygems