From 4c4d0a2403ab151988528052c89efedae656753d Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Wed, 6 May 2020 09:47:39 +0200 Subject: [PATCH] Hide icon if there is no users --- app/views/user_my_modules/_index.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/user_my_modules/_index.html.erb b/app/views/user_my_modules/_index.html.erb index a6c7bc2c6..f34069125 100644 --- a/app/views/user_my_modules/_index.html.erb +++ b/app/views/user_my_modules/_index.html.erb @@ -11,9 +11,11 @@ <%= image_tag avatar_path(user, :icon_small) %> <% end %> - - - + <% if @my_module.unassigned_users.any? %> + + + + <% end %> <% else %>