X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f263c987ad0b144393edd28f281c5b19e84fdf0b..ae34bc2de285f5bce4a3a6537d454a62f2fa52e6:/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..3fdbcd7019 100644 --- a/apps/workbench/app/views/application/_show_recent.html.erb +++ b/apps/workbench/app/views/application/_show_recent.html.erb @@ -6,7 +6,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 +15,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) %> @@ -28,30 +30,28 @@ | |
---|---|---|---|
+ <%= render :partial => "selection_checkbox", :locals => {:object => object} %> + | + <% end %>- <%= render :partial => "selection_checkbox", :locals => {:object => object} %> - | -- <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %> + <% if (current_user.is_admin and current_user.uuid != object.uuid) or !current_user.is_admin %> + <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %> + <% end %> | <% object.attributes_for_display.each do |attr, attrvalue| %> <% next if attr_blacklist.index(" "+attr) %><% if attr == 'uuid' %> - <%= attrvalue %> + <%= attrvalue %> <% else %> - <% if object.attribute_editable? attr %> - <%= render_editable_attribute object, attr %> - <% 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 %>