projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '17719-keep-web-pdh-cache'
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
application
/
_show_recent.html.erb
diff --git
a/apps/workbench/app/views/application/_show_recent.html.erb
b/apps/workbench/app/views/application/_show_recent.html.erb
index dd6876d575e92c06c7f06c663ab812c0c2c1e36f..537cce7a3182feb25aee0e4a6ca1fd5cad5472a2 100644
(file)
--- a/
apps/workbench/app/views/application/_show_recent.html.erb
+++ b/
apps/workbench/app/views/application/_show_recent.html.erb
@@
-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">
<% 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' %>
<% 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| %>
<%= render partial: "paging", locals: {results: objects, object: @object} %>
<%= form_tag do |f| %>
@@
-27,11
+29,9
@@
<%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %>
</th>
<% end %>
<%= 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>
<th>
<!-- a column for delete buttons -->
</th>
@@
-60,11
+60,9
@@
<% end %>
</td>
<% end %>
<% 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>
<td>
<%= render partial: 'delete_object_button', locals: {object:object} %>
</td>