Sha256: d1b53aa4f9956a5fef6ceafcd87106c721bd86c7c6a12ec39910ec6a4e660aa5

Contents?: true

Size: 1.65 KB

Versions: 7

Compression:

Stored size: 1.65 KB

Contents

<% if options[:crop].to_s == 'true' && content.ingredient %>
<%= link_to_overlay_window(
  render_icon('crop'),
  alchemy.crop_admin_essence_picture_path(content.essence, :options => options),
  {
    :size => "fullscreen",
    :title => t('Edit Picturemask')
  },
  {
    :title => t('Edit Picturemask')
  }
) %>
<%- else -%>
<a href="#" class="disabled"><%= render_icon('crop') %></a>
<%- end -%>

<%= link_to_overlay_window(
  render_icon('swap_picture'),
  alchemy.admin_pictures_path(
    :element_id => content.element,
    :content_id => content,
    :swap => true,
    :options => options
  ),
  {
    :title => (content.ingredient ? t('swap_image') : t('insert_image')),
    :size => '780x580',
    :resizable => "true"
  },
  :title => (content.ingredient ? t('swap_image') : t('insert_image'))
) %>

<%= link_to(render_icon(:link), '#', {
  :onclick => "Alchemy.LinkOverlay.open(this, 420)",
  :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 => "Alchemy.LinkOverlay.removeLink(this, #{content.id})",
  :class => content.linked? ? 'linked' : 'disabled',
  :title => t('unlink')
}) %>

<%= link_to_overlay_window(
  render_icon('edit'),
  alchemy.edit_admin_essence_picture_path(
    :id => content.essence.id,
    :content_id => content.id,
    :options => options
  ),
  {
    :title => t('edit_image_properties'),
    :size => (options[:caption_as_textarea] ? (options[:manual_image_size] ? '380x230' : '380x210') : (options[:manual_image_size] ? '380x190' : '380x180'))
  },
  :title => t('edit_image_properties')
) %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-2.4.1 app/views/alchemy/essences/_essence_picture_tools.html.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/essences/_essence_picture_tools.html.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/essences/_essence_picture_tools.html.erb
alchemy_cms-2.4.0 app/views/alchemy/essences/_essence_picture_tools.html.erb
alchemy_cms-2.4.rc4 app/views/alchemy/essences/_essence_picture_tools.html.erb
alchemy_cms-2.4.rc2 app/views/alchemy/essences/_essence_picture_tools.html.erb
alchemy_cms-2.4.rc1 app/views/alchemy/essences/_essence_picture_tools.html.erb