Sha256: e58910f37f2068e1bd8488754158a0533628145773d5f2048da0fd86121c4513

Contents?: true

Size: 1.74 KB

Versions: 22

Compression:

Stored size: 1.74 KB

Contents

<% linkable = content.settings_value(:linkable, options) != false %>

<% if content.essence && content.essence.allow_image_cropping?(options) %>
  <%= link_to_dialog render_icon('crop'),
    alchemy.crop_admin_essence_picture_path(
      content.essence,
      options: content.settings.update(options).to_json
    ), {
      size: "1000x615",
      title: Alchemy.t('Edit Picturemask'),
      image_loader: false,
      padding: false
    }, {title: Alchemy.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 ? Alchemy.t(:swap_image) : Alchemy.t(:insert_image)),
    size: '780x580',
    padding: false
  },
  title: (content.ingredient ? Alchemy.t(:swap_image) : Alchemy.t(:insert_image)) %>

<%= link_to_if linkable, render_icon(:link), '', {
  onclick: 'new Alchemy.LinkDialog(this).open(); return false;',
  class: content.linked? ? 'linked' : nil,
  title: Alchemy.t(:link_image),
  'data-content-id' => content.id,
  id: "edit_link_#{content.id}"
} %>

<%= link_to_if linkable, render_icon('unlink'), '', {
  onclick: "return Alchemy.LinkDialog.removeLink(this, #{content.id})",
  class: content.linked? ? 'linked' : 'disabled',
  title: Alchemy.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: Alchemy.t(:edit_image_properties),
    size: edit_picture_dialog_size(content, options)
  }, title: Alchemy.t(:edit_image_properties) %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.6 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.5 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.4 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.6.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.5.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.4.2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.5.0.rc1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.4.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.3.3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.3.2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.4.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.3.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.3.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb