<% description ||= 'image' thumbnail ||= 'medium' toggle_image_display ||= false conditions ||= nil randomiser = rand(Time.now.yesterday.to_i * Time.now.to_i) current_image_link_href = refinery.insert_admin_images_path(:dialog => true, :callback => "image_picker_#{randomiser}_changed", :width => 866, :height => 510, :conditions => conditions) current_image_title = t('.change', :what => description.titleize) -%>
<%= link_to t('.show'), '', :class => "current_image_toggler" if toggle_image_display %> <%= f.hidden_field field, :class => "current_image_id" -%>
"> <% unless image.nil? -%> <%= image_fu image, Refinery::Images.user_image_sizes[thumbnail.to_sym], :class => "brown_border", :class => "current_picked_image" %> <% else -%> <% end -%> > <%= t('.none_selected') %>
<%= link_to t('.remove_current'), "#", :class => "remove_picked_image", :style => "#{"display:none;" if image.nil?}" %>
<% content_for :javascripts do -%> <% end %>