40 lines
1.4 KiB
Plaintext
Executable File
40 lines
1.4 KiB
Plaintext
Executable File
#annonce_photo.annonce_photo{:id => annonce_photo.id}
|
|
.inner
|
|
=image_tag annonce_photo.file.medium.thumb.url
|
|
|
|
|
|
.link.invalid
|
|
|
|
|
|
|
|
-AnnoncePhoto::MODO.each_with_index do |(key,value),index|
|
|
|
|
= link_to admin_annonce_photo_path(annonce_photo,:annonce_photo => {:modo_id => key, :moderated => true, :enabled => false}), :remote => true, :style => "color:red;", :method => :put do
|
|
|
|
=ic :times
|
|
=value
|
|
|
|
|
|
|
|
= link_to admin_annonce_photo_path(annonce_photo,:annonce_photo => {:moderated => true, :enabled => true}), :remote => true, :style => "color:green;", :class => "link valid", :method => :put do
|
|
=ic(:check)
|
|
=link_to annonce_photo.file.url, :onclick => "window.open(this.href, 'mywin',
|
|
'left=20,top=20,width=1000,height=1000,toolbar=1'); return false;", :class => "btn btn-primary" do
|
|
=ic(:eye)
|
|
Photo
|
|
=link_to [:public, annonce_photo.annonce], :onclick => "window.open(this.href, 'mywin',
|
|
'left=20,top=20,width=1000,height=1000,toolbar=1'); return false;", :class => "btn btn-primary" do
|
|
=ic(:eye)
|
|
Annonce
|
|
|
|
=link_to [:admin, annonce_photo.annonce.customer], :onclick => "window.open(this.href, 'mywin',
|
|
'left=20,top=20,width=1000,height=1000,toolbar=1'); return false;", :class => "btn btn-primary" do
|
|
=ic(:user)
|
|
-if annonce_photo.annonce.customer.orders.where(:paid => true).count > 0
|
|
|
|
€
|
|
|
|
|
|
|
|
|