Sha256: 3d7f89d08907789995b092ad1c2f87516754ddffc75a15eb30703c1eade582bb
Contents?: true
Size: 1.69 KB
Versions: 18
Compression:
Stored size: 1.69 KB
Contents
<% if options[:crop] && content.ingredient && content.ingredient.can_be_cropped_to(options[:image_size], options[:upsample]) %> <%= link_to_dialog( render_icon('crop'), alchemy.crop_admin_essence_picture_path(content.essence, options: options.to_json), { size: "1000x615", title: _t('Edit Picturemask'), image_loader: false, padding: false }, { title: _t('Edit Picturemask') } ) %> <%- else -%> <a href="#" class="disabled"><%= render_icon('crop') %></a> <%- end -%> <%= link_to_dialog( render_icon('swap_picture'), alchemy.admin_pictures_path( element_id: content.element, content_id: content.id, swap: true, options: options.to_json ), { title: (content.ingredient ? _t(:swap_image) : _t(:insert_image)), size: '780x580', padding: false }, title: (content.ingredient ? _t(:swap_image) : _t(:insert_image)) ) %> <%= link_to(render_icon(:link), '', { onclick: 'd = new Alchemy.LinkDialog(this); d.open(); return false;', class: content.linked? ? 'linked' : nil, title: _t(:link_image), 'data-content-id' => content.id, id: "edit_link_#{content.id}" }) %> <%= link_to(render_icon('unlink'), '', { onclick: "return Alchemy.LinkDialog.removeLink(this, #{content.id})", class: content.linked? ? 'linked' : 'disabled', title: _t(:unlink) }) %> <%= link_to_dialog( render_icon('edit'), alchemy.edit_admin_essence_picture_path( id: content.essence.id, content_id: content.id, options: options.to_json ), { title: _t(:edit_image_properties), size: (options[:caption_as_textarea] ? (options[:sizes] ? '380x320' : '380x300') : (options[:sizes] ? '380x290' : '380x255')) }, title: _t(:edit_image_properties) ) %>
Version data entries
18 entries across 18 versions & 2 rubygems