Sha256: ffb71a270243855754e980dc4e404013ae6f16f80cd458a3f0d7e37c46dd4bfe

Contents?: true

Size: 1.08 KB

Versions: 22

Compression:

Stored size: 1.08 KB

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 %>">
<% unless params[:image_assign_url].blank? %>
  <% action_url = params[:image_assign_url] + "?picture_id=#{picture_to_assign.id}" %>
  <% action_method = params[:image_assign_method] %>
<% else %>
  <% action_url = create_or_assign_url(picture_to_assign, @options.to_json) %>
  <% action_method = @content.blank? ? 'post' : 'put' %>
<% end %>
  <%= 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: action_method,
    title: _t(:assign_image),
    class: 'thumbnail_background'
  ) %>
  <div class="picture_name" title="<%= picture_to_assign.name %>">
    <%= picture_to_assign.name.empty? ? "&nbsp;" : picture_to_assign.name %>
  </div>
</div>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
alchemy_cms-3.1.3 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.2 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb