negos_app/app/views/public/wishes/_wish.html.haml

27 lines
980 B
Plaintext
Executable File

-if(wish.need.verified?)
-class_name="info"
-elsif(wish.need.negociating?)
-class_name="warning"
-elsif(wish.need.negociated?)
-class_name="success"
-elsif(wish.need.failed?)
-class_name="danger"
%tr{:id => wish.need.id, class: class_name}
%td
=link_to wish.need.title, public_need_path(wish.need)
%td
-if wish.need.category
= i(:"tag") + " " + wish.need.category.name
%td
=wish.need.human_state
%td{style: 'text-align:center' }
=i(:"hand-paper-o") + " " + wish.need.wishes.length.to_s
%td{style: 'text-align:center'}
=i(:"comment-o") + " " + wish.need.messages.length.to_s
%td.actions{:style => "width:150px;text-align:right"}
=link_to i(:"eye"), public_need_path(wish.need),title:"Voir la fiche du besoin", class: 'btn btn-primary btn-square'
-if wish.need.verified?
=link_to i(:"edit"), edit_public_need_wish_path(wish.need, wish),title:"Modifier mon intérêt pour ce besoin", class: 'btn btn-primary btn-square'