18 lines
789 B
Ruby
18 lines
789 B
Ruby
module ContactsHelper
|
|
def contact_aspect_dropdown(contact)
|
|
render :partial => 'people/relationship_action',
|
|
:locals => { :person => contact.person,
|
|
:contact => contact,
|
|
:current_user => current_user }
|
|
end
|
|
|
|
def start_a_conversation_link(aspect, contacts_size)
|
|
suggested_limit = 16
|
|
conv_opts = { class: "conversation_button contacts_button"}
|
|
conv_opts[:title] = t('.many_people_are_you_sure', suggested_limit: suggested_limit) if contacts_size > suggested_limit
|
|
|
|
content_tag :span, conv_opts do
|
|
content_tag(:i, nil, :class => 'entypo mail contacts-header-icon', :title => t('contacts.index.start_a_conversation'), 'data-toggle' => 'modal', 'data-target' => '#conversationModal')
|
|
end
|
|
end
|
|
end
|