projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #9587
[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..8712c0a7c31a4d55c55dd848eccf95b6321f241f 100644
(file)
--- a/
apps/workbench/app/views/application/_show_recent.html.erb
+++ b/
apps/workbench/app/views/application/_show_recent.html.erb
@@
-8,8
+8,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
+25,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
+56,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>