Sha256: bc1b6fcfbffd12296f45f76baa2857fa943b74c529f170dc55c2783d46cfa254

Contents?: true

Size: 1.82 KB

Versions: 48

Compression:

Stored size: 1.82 KB

Contents

<% linkable = content.settings[:linkable] != false %>

<% if content.essence && content.essence.allow_image_cropping? %>
  <%= link_to_dialog render_icon(:crop),
    alchemy.crop_admin_essence_picture_path(content.essence), {
      size: "1080x615",
      title: Alchemy.t('Edit Picturemask'),
      image_loader: false,
      padding: false
    }, {title: Alchemy.t('Edit Picturemask')} %>
<%- else -%>
  <a href="#" class="disabled" tabindex="-1"><%= render_icon(:crop) %></a>
<%- end -%>

<%= link_to_dialog render_icon('file-image', style: 'regular'),
  alchemy.admin_pictures_path(
    element_id: content.element,
    content_id: content.id,
    swap: true
  ),
  {
    title: (content.ingredient ? Alchemy.t(:swap_image) : Alchemy.t(:insert_image)),
    size: '790x590',
    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}"
} do %>
  <span class="disabled" tabindex="-1"><%= render_icon(:link) %></span>
<% end %>

<%= link_to_if linkable, render_icon(:unlink), '', {
  onclick: "return Alchemy.LinkDialog.removeLink(this, #{content.id})",
  class: content.linked? ? 'linked' : 'disabled',
  tabindex: content.linked? ? nil : '-1',
  title: Alchemy.t(:unlink)
} do %>
  <span class="disabled" tabindex="-1"><%= render_icon(:unlink) %></span>
<% end %>

<%= link_to_dialog render_icon(:edit),
  alchemy.edit_admin_essence_picture_path(
    id: content.essence.id,
    content_id: content.id
  ), {
    title: Alchemy.t(:edit_image_properties),
    size: edit_picture_dialog_size(content)
  }, title: Alchemy.t(:edit_image_properties) %>

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.7 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.6 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.5 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.4 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.3.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.2.7 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.2.6 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.1.10 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.0.10 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.2.5 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.1.9 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.0.9 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.2.4 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.1.8 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.0.8 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-5.0.7 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb