Sha256: 6835056c970cbcdac8815898bc83db7eb16c94b213458e65bc49ad3db67deafe

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 KB

Contents

<% if options[:crop] && content.ingredient %>
<%= 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

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.3 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.2 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.1 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.0 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/essences/shared/_essence_picture_tools.html.erb