X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6c2a704b7a2d721087976b2b8ec4f22cdaf44178..def17dde1e878bd60911fd991c6a1b406ea2e89f:/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 c36f27ccc7..537cce7a31 100644
--- 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? %>
@@ -6,7 +10,7 @@ <% else %> -<% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class' %> +<% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class properties' %> <%= render partial: "paging", locals: {results: objects, object: @object} %> @@ -15,7 +19,9 @@
+ <% if objects.first and objects.first.class.goes_in_projects? %> + | + <% end %> | <% objects.first.attributes_for_display.each do |attr, attrvalue| %> <% next if attr_blacklist.index(" "+attr) %> @@ -23,18 +29,23 @@ <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %> <% end %> + | + + | ||
---|---|---|---|---|---|
- <%= render :partial => "selection_checkbox", :locals => {:object => object} %> - | + <% if objects.first.class.goes_in_projects? %> ++ <%= render :partial => "selection_checkbox", :locals => {:object => object} %> + | + <% end %><%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %> | @@ -43,18 +54,15 @@ <% next if attr_blacklist.index(" "+attr) %><% if attr == 'uuid' %> - <%= attrvalue %> - <% else %> - <% if object.attribute_editable? attr %> - <%= render_editable_attribute object, attr %> + <%= attrvalue %> <% else %> - <%= resource_class_for_uuid(attrvalue, referring_attr: attr, referring_object: @object).to_s %> - <%= attrvalue %> - <% end %> - <%= link_to_if_arvados_object(attrvalue, { referring_object: @object, link_text: raw('') }) if resource_class_for_uuid(attrvalue, {referring_object: @object}) %> + <%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: object, with_class_name: true, friendly_name: true} %> <% end %> | <% end %> ++ <%= render partial: 'show_home_button', locals: {object:object} %> + | <%= render partial: 'delete_object_button', locals: {object:object} %> |