Sha256: b7380852672195e088ce21127bd17588837c31d45eb3219079c73fa1686cc2ae

Contents?: true

Size: 1.63 KB

Versions: 16

Compression:

Stored size: 1.63 KB

Contents

<% options = local_assigns.fetch(:options, {}) %>

<%= content_tag :div, id: content.dom_id, data: {"content-id" => content.id}, class: "content_editor essence_picture" do %>
  <%= content_label(content) %>
  <div class="picture_thumbnail">
    <span class="picture_tool delete">
      <%= link_to render_icon(:times), '#',
        onclick: "return Alchemy.removePicture('##{content.form_field_id(:picture_id)}');" %>
    </span>
    <div class="picture_image">
      <div class="thumbnail_background">
        <%- if content.ingredient -%>
          <%= essence_picture_thumbnail(content, options) %>
        <% else %>
          <%= render_icon(:image, style: 'regular') %>
        <% end %>
      </div>
    </div>
    <%- if content.essence.css_class.present? -%>
      <div class="essence_picture_css_class">
        <%= Alchemy.t("alchemy.essence_pictures.css_classes.#{content.essence.css_class}",
          default: content.essence.css_class.camelcase) %>
      </div>
    <%- end -%>
    <div class="edit_images_bottom">
      <%= render 'alchemy/essences/shared/essence_picture_tools', {
        content: content,
        options: options
      } %>
    </div>
  </div>
  <%= hidden_field_tag content.form_field_name(:picture_id),
    content.ingredient.try!(:id) %>
  <%= hidden_field_tag content.form_field_name(:link),
    content.essence.link %>
  <%= hidden_field_tag content.form_field_name(:link_title),
    content.essence.link_title %>
  <%= hidden_field_tag content.form_field_name(:link_class_name),
    content.essence.link_class_name %>
  <%= hidden_field_tag content.form_field_name(:link_target),
    content.essence.link_target %>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.6 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.5 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.5.1 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.4.5 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.4 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.3 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.2 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.1 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.6.0 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.5.0 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.4.4 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.4.3 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.4.2 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.4.1 app/views/alchemy/essences/_essence_picture_editor.html.erb
alchemy_cms-4.4.0 app/views/alchemy/essences/_essence_picture_editor.html.erb