X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/df8de1bd9a517a1a3bfac0f8ab9ace41524d4b39..1b189a0961ba757caf6160285b59daa26c7cdcae:/apps/workbench/app/views/application/_show_recent.html.erb?ds=sidebyside
diff --git a/apps/workbench/app/views/application/_show_recent.html.erb b/apps/workbench/app/views/application/_show_recent.html.erb
index 04387ffb3e..57a5b74e93 100644
--- a/apps/workbench/app/views/application/_show_recent.html.erb
+++ b/apps/workbench/app/views/application/_show_recent.html.erb
@@ -1,22 +1,25 @@
-<% if @objects.empty? %>
+<% if objects.empty? %>
- No <%= controller.model_class.to_s.pluralize.underscore.gsub '_', ' ' %> to display. + No <%= controller.controller_name.humanize.downcase %> to display.
<% else %> -<% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at' %> +<% 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} %> +<%= render partial: "paging", locals: {results: objects, object: @object} %> <%= form_tag do |f| %>+ <% end %> | - <% @objects.first.attributes_for_display.each do |attr, attrvalue| %> + <% objects.first.attributes_for_display.each do |attr, attrvalue| %> <% next if attr_blacklist.index(" "+attr) %> | <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %> @@ -27,28 +30,26 @@ |
---|---|---|
+ <%= 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'} %> | <% object.attributes_for_display.each do |attr, attrvalue| %> <% next if attr_blacklist.index(" "+attr) %><% if attr == 'uuid' %> - <%= link_to_if_arvados_object object %> - <%= link_to_if_arvados_object(object, { link_text: raw('') }) %> + <%= 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 %> @@ -65,6 +66,6 @@ <% end %> -<%= render partial: "paging", locals: {results: @objects, object: @object} %> +<%= render partial: "paging", locals: {results: objects, object: @object} %> <% end %>