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

Version Path
alchemy_cms-3.2.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.2.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb