diaspora/app/views/conversations/_participants_popover.haml
Jonne Haß c6d2c714e9 never pass nil to image_tag
In production that results in a not precompiled error
2013-06-14 14:47:54 +02:00

10 lines
539 B
Text

.conversation_participants_popover_content{ :"data-content-conversation-id" => conversation.id }
.conversation_participants_popover
- conversation.participants.limit(20).each do |participant|
= image_tag(participant.profile.image_url(:small),
:class => 'avatar',
:title => participant.name,
:data => {:toggle => 'tooltip'})
- participants_count = conversation.participants.count
- if participants_count > 20
%span{ :class => 'participants_left' } And #{participants_count - 20} more