Sha256: c825b2803321ef23178c7fdf32f119cb5b9a2be58c92e6e6f5fdac94f50ff388
Contents?: true
Size: 546 Bytes
Versions: 13
Compression:
Stored size: 546 Bytes
Contents
module ContactsHelper def contact_brief(contact) "N contacts in common" end def contact_link(c) link_to c.status, edit_contact_path(c), :title => t("contact.#{ c.action }.title", :name => c.receiver.name) end # Show current ties from current user to actor, if they exist, or provide a link # to create new ties to actor def contact_to(a) if user_signed_in? contact_link current_subject.contact_to!(a) else link_to t("contact.new.link"), new_user_session_path end end end
Version data entries
13 entries across 13 versions & 1 rubygems