19 lines
636 B
Plaintext
19 lines
636 B
Plaintext
|
|
|
|
-if @share_image.password? and ((session[:share_image_allowed] and !session[:share_image_allowed][@share_image.slug]) or !session[:share_image_allowed])
|
|
=form_tag "", :method => "get" do
|
|
%p
|
|
Mot de passe :
|
|
=password_field_tag :password
|
|
=submit_tag "ok", :class => "btn btn-primary", :style => "margin-bottom: 10px;"
|
|
|
|
-else
|
|
-@share_image.image_files.each do |image_file|
|
|
=image_tag image_file.file.large.thumb
|
|
|
|
%p
|
|
-if @share_image.password?
|
|
Ce lien est protégé par mot de passe
|
|
|
|
%p
|
|
=link_to "Télécharger le fichier ZIP", zip_admin_share_image_url(:id => @share_image.slug) |