Sha256: b3795317fc582884dd81a0c6008cd55301faab9e3a125ebe8389cba8f0f49c1b
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
module ContactsHelper def contact_brief(contact) "N contacts in common" 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? if current_subject.ties_to?(a) current_subject.ties_to(a).map(&:relation_name).join(", ") else link_to t("contact.new.link"), edit_contact_path(current_subject.contact_to!(a)), :title => t("contact.new.title", :name => a.name) end else link_to t("contact.new.link"), new_user_session_path end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
social_stream-base-0.6.2 | app/helpers/contacts_helper.rb |
social_stream-base-0.6.1 | app/helpers/contacts_helper.rb |
social_stream-base-0.6.0 | app/helpers/contacts_helper.rb |