X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8184edf9fe02a430e9f6ca175390dcfbc3e2c4d3..47e59a35d5ed9b2cdb052894d741972324058505:/apps/workbench/app/views/application/_index.html.erb diff --git a/apps/workbench/app/views/application/_index.html.erb b/apps/workbench/app/views/application/_index.html.erb index f79555f8bd..e69de29bb2 100644 --- a/apps/workbench/app/views/application/_index.html.erb +++ b/apps/workbench/app/views/application/_index.html.erb @@ -1,50 +0,0 @@ -<% if @objects.empty? %> - -

- No <%= controller.model_class.to_s.underscore.pluralize.gsub '_', ' ' %> to display. -

- -<% else %> - -<% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at' %> - - - - - <% @objects.first.attributes_for_display.each do |attr, attrvalue| %> - <% next if attr_blacklist.index(" "+attr) %> - - <% end %> - - - - - <% @objects.each do |object| %> - - <% object.attributes_for_display.each do |attr, attrvalue| %> - <% next if attr_blacklist.index(" "+attr) %> - - <% end %> - - <% end %> - - - - -
- <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %> -
- <% if attr == 'uuid' %> - <%= link_to_if_arvados_object object %> - <% elsif object.attribute_editable? attr %> - <%= render_editable_attribute object, attr %> - <% else %> - <%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: @object, with_class_name: true} %> - <% end %> -
- -<% end %> - -<% if controller.model_class.creatable? %> -<%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", { action: 'create', return_to: './' }, { class: 'btn btn-primary' } %> -<% end %>