forked from saurabh/orbit4-5
20 lines
818 B
Plaintext
20 lines
818 B
Plaintext
|
<% existing_members_limit = 4 %>
|
||
|
|
||
|
<label class="control-label muted"><%= t(:existing_members) %></label>
|
||
|
<div class="controls" id="existing-member-avatar-holder">
|
||
|
<% @existing_members.each_with_index do |em,i| %>
|
||
|
<% if em["id"] != current_user.id.to_s %>
|
||
|
<img data-member-id="<%= em["id"] %>" class="existing-phone-avatar" src="<%= em["avatar"] %>" style="width:75px;height:75px;" />
|
||
|
<% end %>
|
||
|
<% if i == existing_members_limit %>
|
||
|
<span class="existing-member-count"> … <%= (@existing_members.count - existing_members_limit).to_s %> more.</span>
|
||
|
<% break
|
||
|
end %>
|
||
|
<% end %>
|
||
|
<% if @existing_members.count > 1 %>
|
||
|
<a href="#existing_members_dialog" data-toggle="modal"> Edit members</a>
|
||
|
<% else %>
|
||
|
No members.
|
||
|
<% end %>
|
||
|
</div>
|