36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
- if @image_actu.image_file and @image_actu.image_file.file?
|
|
|
|
#image_actu.image_actu_show{:id => @image_actu.id }
|
|
.image
|
|
=image_tag(@image_actu.image_file.file.secure.url)
|
|
.description
|
|
%h2
|
|
=simple_format parse_hashtag(@image_actu_lang.description.to_s)
|
|
|
|
-if current_admin
|
|
-if @image_actu.image_actu_album
|
|
=link_to admin_image_actus_path(:image_actu_album_id => @image_actu.image_actu_album.id), :target => "_blank" do
|
|
=ic(:"pencil")
|
|
Modifier
|
|
|
|
=link_to [:admin , @image_actu], :method => :delete, :data => {:confirm => "Voulez-vous vraiment supprimer cette image d'actu ?"} do
|
|
=ic(:"trash-o")
|
|
Supprimer
|
|
|
|
%p
|
|
-if @image_actu.homeable
|
|
Cette image
|
|
%strong peut
|
|
s'afficher sur la home
|
|
%br
|
|
=link_to ic(:home)+"désactiver pour la home", admin_image_actu_path(:id => @image_actu.id, :image_actu => {:homeable => false}), :method => :patch, :remote => true
|
|
|
|
-else
|
|
Cette image ne peut
|
|
%strong pas
|
|
s'afficher sur la home
|
|
%br
|
|
=link_to ic(:home)+"ok pour la home", admin_image_actu_path(:id => @image_actu.id, :image_actu => {:homeable => true}), :method => :patch, :remote => true
|
|
|
|
|
|
.clear |