Hide icon if there is no users

This commit is contained in:
Urban Rotnik 2020-05-06 09:47:39 +02:00
parent 7e9054e6d2
commit 4c4d0a2403

View file

@ -11,9 +11,11 @@
<%= image_tag avatar_path(user, :icon_small) %> <%= image_tag avatar_path(user, :icon_small) %>
</span> </span>
<% end %> <% end %>
<span class='global-avatar-container assign-new-user'> <% if @my_module.unassigned_users.any? %>
<i class="fas fa-plus"></i> <span class='global-avatar-container assign-new-user'>
</span> <i class="fas fa-plus"></i>
</span>
<% end %>
</a> </a>
<% else %> <% else %>
<div class="task-assigned-users"> <div class="task-assigned-users">