Merge branch '19954-permission-dedup-doc'
[arvados.git] / apps / workbench / app / views / application / _show_recent.html.erb
index dd6876d575e92c06c7f06c663ab812c0c2c1e36f..537cce7a3182feb25aee0e4a6ca1fd5cad5472a2 100644 (file)
@@ -1,3 +1,7 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% if objects.empty? %>
 <br/>
 <p style="text-align: center">
@@ -8,8 +12,6 @@
 
 <% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class properties' %>
 
-<% show_home_link = current_user.is_admin and controller.model_class == User %>
-
 <%= render partial: "paging", locals: {results: objects, object: @object} %>
 
 <%= form_tag do |f| %>
         <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %>
       </th>
       <% end %>
-      <% if show_home_link %>
-        <th class="arv-user-home">
-          <!-- a column for user's home -->
-        </th>
-      <% end %>
+      <th>
+        <!-- a column for user's home -->
+      </th>
       <th>
         <!-- a column for delete buttons -->
       </th>
         <% end %>
       </td>
       <% end %>
-      <% if show_home_link %>
-        <td>
-          <%= link_to 'Home', "/projects/#{object.uuid}" %>
-        </td>
-      <% end %>
+      <td>
+        <%= render partial: 'show_home_button', locals: {object:object} %>
+      </td>
       <td>
         <%= render partial: 'delete_object_button', locals: {object:object} %>
       </td>