10078: Now that the recent_collections panel includes collections from Home directory...
authorradhika <radhika@curoverse.com>
Mon, 3 Oct 2016 22:58:59 +0000 (18:58 -0400)
committerradhika <radhika@curoverse.com>
Mon, 3 Oct 2016 22:58:59 +0000 (18:58 -0400)
(self and other users' for admin user), suppress displaying confusing '(none)' in place of a Home directory.

apps/workbench/app/views/projects/_show_dashboard.html.erb

index c830b597850e8c9adde717bf1b7a33262825ea3c..873d4f3f703da8557349de635723a8dcfecb7212 100644 (file)
           <% recent_cs[:collections].each do |p| %>
             <div class="dashboard-panel-info-row">
               <div>
+                <% if recent_cs[:owners][p[:owner_uuid]].is_a?(Group) %>
                 <i class="fa fa-fw fa-folder-o"></i><%= link_to_if_arvados_object recent_cs[:owners][p[:owner_uuid]], friendly_name: true %>/
+                <% end %>
                 <span class="pull-right"><%= render_localized_date(p[:modified_at], "noseconds") %></span>
               </div>
               <div class="text-overflow-ellipsis" style="margin-left: 1em; width: 100%"><%= link_to_if_arvados_object p, {friendly_name: true, no_tags: true} %>