33 lines
943 B
Plaintext
33 lines
943 B
Plaintext
.col-md-6
|
|
.padding.need-item
|
|
|
|
%h4
|
|
=link_to need.title.upcase, public_need_path(need)
|
|
|
|
-if need.author
|
|
%p.info=i(:"clock-o") + " Ajouté il y a #{time_ago_in_words(need.created_at)} par #{need.author.anonyme_nick}"
|
|
-else
|
|
%p.info=i(:"clock-o") + " Ajouté il y a #{time_ago_in_words(need.created_at)}"
|
|
|
|
|
|
-if need.category
|
|
.top-left-info
|
|
=i(:"tag") + " " + need.category_path
|
|
|
|
|
|
|
|
|
|
|
|
%p.description=truncate(need.description, length: 100)
|
|
|
|
.counters
|
|
.item=i(:"hand-paper-o") + " " + need.wishes.length.to_s
|
|
.item=i(:"comment-o") + " " + need.messages.length.to_s
|
|
|
|
-if(need.customers.include?(current_customer))
|
|
=link_to i(:"check") + " Intéressé", wish_public_need_path(need) , :class => "btn btn-success pull-right"
|
|
-else
|
|
=link_to i(:"hand-paper-o") + " Ça m'intéresse !", wish_public_need_path(need) , :class => "btn btn-primary pull-right"
|
|
|
|
.clear
|