Sha256: 27a022ee84c06c7fe372f28e2170d442f8dbf837cdb2744ad6ec629df64c6be8
Contents?: true
Size: 1.68 KB
Versions: 20
Compression:
Stored size: 1.68 KB
Contents
<%- unless content.essence.picture.nil? -%> <%- image_size = options[:image_size] -%> <%- img_tag = image_tag( url_for( :controller => '/pictures', :action => 'show', :id => content.essence.picture.id, :name => content.essence.picture.urlname, :size => image_size, :crop => options[:crop] ? 'crop' : nil, :crop_from => options[:crop] && !content.essence.crop_from.blank? ? content.essence.crop_from : nil, :crop_size => options[:crop] && !content.essence.crop_size.blank? ? content.essence.crop_size : nil, :upsample => options[:upsample], :padding => options[:padding], :format => (options[:format].blank? ? configuration(:image_output_format) : options[:format]), :effects => options[:effects].blank? ? nil : options[:effects] ), { :alt => (content.essence.alt_tag.blank? ? nil : content.essence.alt_tag), :title => (content.essence.title.blank? ? nil : content.essence.title), :id => dom_id(content.essence.picture) }.merge(html_options) ) -%> <%- caption = (content_tag("div", content.essence.caption, :id => "#{dom_id(content.essence.picture)}_caption", :class => "image_caption") unless (options[:show_caption] == false)) -%> <%- if content.essence.link.blank? || options[:disable_link] -%> <%= img_tag %> <%- unless content.essence.caption.blank? -%> <%= caption %> <%- end -%> <%- else -%> <%= link_to( content.essence.caption.blank? || options[:show_caption] == false ? img_tag : img_tag + caption, url_for(content.essence.link), :title => content.essence.link_title, :target => (content.essence.link_target == "blank" ? "_blank" : nil), 'data-link-target' => content.essence.link_target ) %> <%- end -%> <%- end -%>
Version data entries
20 entries across 20 versions & 1 rubygems