26 lines
885 B
Plaintext
Executable File
26 lines
885 B
Plaintext
Executable File
-if(wish.verified?)
|
|
-class_name="info"
|
|
-elsif(wish.negociating?)
|
|
-class_name="warning"
|
|
-elsif(wish.negociated?)
|
|
-class_name="success"
|
|
-elsif(wish.failed?)
|
|
-class_name="danger"
|
|
|
|
%tr{:id => wish.id, class: class_name}
|
|
%td
|
|
=link_to wish.title, public_need_path(wish)
|
|
%td
|
|
-if wish.category
|
|
= i(:"tag") + " " + wish.category.name
|
|
%td
|
|
=wish.human_state
|
|
%td{style: 'text-align:center' }
|
|
=i(:"hand-paper-o") + " " + wish.wishes.length.to_s
|
|
%td{style: 'text-align:center'}
|
|
=i(:"comment-o") + " " + wish.messages.length.to_s
|
|
%td.actions{:style => "width:150px;text-align:right"}
|
|
=link_to i(:"eye"), public_need_path(wish),title:"Voir la ficher du besoin", class: 'btn btn-primary btn-square'
|
|
-if wish.verified?
|
|
=link_to i(:"remove"), wish_public_need_path(wish),title:"Je ne suis plus intéressé", class: 'btn btn-danger btn-square'
|