Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. .row-with-divider
  2. .col-12
  3. .listing-author
  4. .listing-author-avatar
  5. = medium_avatar_thumb(@listing.author, {:class => "listing-author-avatar-image"})
  6. .listing-author-details
  7. .listing-author-name
  8. = link_to @listing.author.name(@current_community), @listing.author, :id => "listing-author-link", :class => "listing-author-name-link", :title => "#{@listing.author.name(@current_community)}"
  9. - if @listing.author != @current_user
  10. .listing-author-contact
  11. %a#listing-contact{href: contact_to_listing_path(:listing_id => @listing.id.to_s), :class => "listing-author-contact-button"}
  12. .content
  13. = t(".contact")
  14.  
  15. - if @current_community.testimonials_in_use && received_testimonials.size > 0
  16. .row-with-divider.listing-author-activity
  17. .col-12
  18. %i.listing-author-activity-icon{:class => icon_class("testimonial")}
  19. .listing-author-activity-item
  20. .listing-author-activity-value
  21. - if received_testimonials.size > 0
  22. = feedback_positive_percentage.to_s + "%"
  23. = t("people.show.positive")
  24. = "(#{received_positive_testimonials.size}/#{received_testimonials.size})"
  25. - else
  26. = t(".no_reviews")
  27. .listing-author-activity-description
  28. = t(".feedback")
  29.  
  30. - if @listing.origin_loc && @listing.origin_loc.address != ""
  31. .row
  32. .col-12
  33. #googlemap
  34. = render :partial => "googlemap", :locals => { :listing => @listing}
  35. = render :partial => "origin", :locals => { :origin_loc => @listing.origin_loc }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement