Sha256: 2fdd9087ae62149289d6945fc78e90542bdf12885aeceb2f87658b60a60c7062
Contents?: true
Size: 1.34 KB
Versions: 8
Compression:
Stored size: 1.34 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) -%> <%- action_method = @content.blank? ? 'post' : 'put' -%> <%- end -%> <div class="image_spinner spinner"> <%= image_tag("alchemy/image_loader.gif", :alt => '') %> </div> <%= 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, :onload => "Alchemy.fadeImage(this, '#picture_to_assign_#{picture_to_assign.id} .image_spinner');", :style => "display: none;" ), action_url, :remote => true, :onclick => '$(self).attr("href", "#").off("click")', :method => action_method, :title => t("assign_image"), :class => 'thumbnail_background' ) %> <div class="picture_name" title="<%= picture_to_assign.name %>"> <%= picture_to_assign.name.empty? ? " " : picture_to_assign.name %> </div> </div>
Version data entries
8 entries across 8 versions & 1 rubygems