Sha256: 5a2ea6697d392bf294632ff905745b64b827189212102a5c260ec252298738ea

Contents?: true

Size: 823 Bytes

Versions: 5

Compression:

Stored size: 823 Bytes

Contents

<div class="picture_thumbnail assign_image_list_detail <%= size.blank? ? 'medium' : size %>" name="<%= picture_to_assign.name %>" id="picture_to_assign_<%= picture_to_assign.id %>">
  <% action_url = create_or_assign_url(picture_to_assign, @options.to_json) %>
  <%= link_to(
    image_tag(
      alchemy.thumbnail_path(
        id: picture_to_assign,
        size: size,
        sh: picture_to_assign.security_token(size: size)
      ),
      alt: picture_to_assign.name
    ),
    action_url,
    remote: true,
    onclick: '$(self).attr("href", "#").off("click"); return false',
    method: @content.blank? ? 'post' : 'put',
    title: Alchemy.t(:assign_image),
    class: 'thumbnail_background'
  ) %>
  <div class="picture_name" title="<%= picture_to_assign.name %>">
    <%= picture_to_assign.name %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-3.3.3 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb