X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/20347d900fb2d75a3f3eef91d4da17a559b0ecd6..03812184bfa1ab7f17960ef48ff30798333bdd54:/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 aabd0217ef..800263f0f4 100644 --- a/apps/workbench/app/views/application/_show_recent.html.erb +++ b/apps/workbench/app/views/application/_show_recent.html.erb @@ -1,4 +1,4 @@ -<% if @objects.empty? %> +<% if objects.empty? %>

No <%= controller.controller_name.humanize.downcase %> to display. @@ -6,17 +6,20 @@ <% 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' %> -<%= render partial: "paging", locals: {results: @objects, object: @object} %> +<%= render partial: "paging", locals: {results: objects, object: @object} %> <%= form_tag do |f| %> + <% if objects.first and objects.first.class.goes_in_folders? %> + + <% 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) %> - <% @objects.each do |object| %> + <% objects.each do |object| %> + <% if objects.first.class.goes_in_folders? %> + + <% end %> <% object.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/, '' %> @@ -29,18 +32,22 @@
+ <%= render :partial => "selection_checkbox", :locals => {:object => object} %> + - <%= render :partial => "selection_checkbox", :locals => {:object => object} %> + <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %> <% 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 %> @@ -65,6 +72,6 @@ <% end %> -<%= render partial: "paging", locals: {results: @objects, object: @object} %> +<%= render partial: "paging", locals: {results: objects, object: @object} %> <% end %>