-if image.photo?

		
	#image.image_block{:id => image.id, :style => "margin-top:"+(image.ratio > 1 ? "3%" : "0.5%")+";"}
		
	
	
		=image_tag image.photo.url, :class => "image"
		%br
		
		%span.title
			-if current_admin
				= form_for [:admin, image], :remote => true do |f| 
					= f.text_field :title, :onchange => "$(this).closest('form').submit();", :onkeyup => "$(this).closest('form').submit();", :style => "display:inline-block !important;width:auto;font-family:courier;", :size => "n"
			-else
				=image.title
			
			="-"
			=l image.shoot_at, :format => :date if image.shoot_at
			-if image.exif
				.exifs
					=image.exif.model
					="-"
					="f "+image.exif.f_number.to_f.to_s
					="-"
					=image.exif.exposure_time.to_s+" s"
					="-"
					=image.exif.iso_speed_ratings.to_s+" iso"
					="-"
					© Nicolas Bally
	
		-if current_admin
			.admin
				#image_form{:id => image.id}
					=render :partial => "image_form", :locals => {:image => image}
			
				
	
	%br
	
	
