Sha256: 1a3cb7212c28a9275573050957957658f5c747552423a338b082d84c3d9a1d3e
Contents?: true
Size: 1.14 KB
Versions: 6
Compression:
Stored size: 1.14 KB
Contents
- unless @attachments.empty? %ul.attachment_list - @attachments.each do |p| %li.attachment_list{:id => p.id} - if p.kind_of?(Picture) .thumbs - p.thumbnails.all(:order => '(width*height) DESC').each do |thumb| = link_to thumb.thumbnail, thumb.public_filename(''), :title => thumb.name, :onclick => "select_thumb(this);return false;" %br = link_to 'original', p.public_filename(''), :title => p.filename, :onclick => "select_thumb(this);return false;" %br = link_to 'X', 'javascript:void(0)', :onclick => "cancel_image();return false;" = link_to_function( image_tag( p.public_filename(''), :alt => p.name ), "select_image(this)" ) - else = link_to p.name, p.public_filename(''), :onclick => "select_thumb(this);return false;" \ %br{:style => "clear:both;"}/ %div{:style => "float:right;margin-bottom:10px;"} = will_paginate @attachments, :class => "pagination", :previous_label => "« previous", :next_label => "next »", :renderer => 'TinyMCELinkRenderer' - else No Image Uploaded Yet.
Version data entries
6 entries across 6 versions & 1 rubygems