base_photo_app/app/views/admin/image_files/_show.html.haml.old

50 lines
1.9 KiB
Plaintext

.content
#first_img.img{:style => ("background:no-repeat center center ;background-size:contain;height:400px;background-image:url('"+(@image_file.file.url).to_s+"?u="+ @image_file.updated_at.to_s+"');")}
.links
=link_to i(:download), download_admin_image_file_path(@image_file), :target => "_blank"
=link_to i(:"rotate-left"), rotate_admin_image_file_path(:id => @image_file.id, :direction => "right"), :remote => true
=link_to i(:"rotate-right"), rotate_admin_image_file_path(@image_file), :remote => true
=# link_to i(:"trash-o"), admin_image_file_path(:id => @image_file.id, :manager => params[:manager], :multiple => params[:multiple]), :confirm => 'Voulez-vous vraiment supprimer cette image ?', :method => :delete, :remote => true
=# link_to i(:rotate, :gray_light, "12x14"), rotate_admin_image_file_path(:id => @image_file.id, :manager => params[:manager], :multiple => params[:multiple]), :remote => true, :onclick => "set_busy();"
= #link_to i(:rotate_right, :gray_light, "12x14"), rotate_admin_image_file_path(:id => @image_file.id, :manager => params[:manager], :multiple => params[:multiple], :direction => :right), :remote => true, :onclick => "set_busy();"
=# link_to i(:check_alt, :gray_light), "#",:onclick => "manager_send_image_file("+@image_file.id.to_s+");return false;" if params[:manager] and !params[:multiple]
-if @image_file.tags.size > 0
%span Tags
.tags
-@image_file.tags.each do |tag|
%span.tag
=tag.name
.infos
-if @image_file.name?
%span
Nom :
.response
=@image_file.name
-if @image_file.origin_name?
%span
Nom original :
.response
=@image_file.origin_name
-if @image_file.description?
%span
Description :
.response
=@image_file.description
-if @image_file.photograph?
%span
Crédit :
.response
=@image_file.photograph
.actions