Merge pull request #5691 from svbergerem/contacts-start-conversation

Contacts page: 'Start a conversation' button should depend on number of contacts in aspect
This commit is contained in:
Jonne Haß 2015-02-20 00:17:50 +01:00
commit 5af4324377

View file

@ -1,8 +1,8 @@
.header
- if @aspect
#aspect_controls.pull-right
- if @contacts_size > 0 && @contacts_size < 20
= start_a_conversation_link(@aspect, @contacts_size)
- if @aspect.contacts.size > 0 && @aspect.contacts.size < 20
= start_a_conversation_link(@aspect, @aspect.contacts.size)
= link_to aspect_toggle_contact_visibility_path(@aspect), id: "contacts_visibility_toggle", class: "contacts_button", method: :put, remote: true do
-if @aspect.contacts_visible?