X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/928565a23bf5ff54fb524b6c38f8e2b0f4b27725..42c20b25e1325124b88e3b9b285544dc41122b56:/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 67b50040a4..7db8559b37 100644 --- a/apps/workbench/app/views/application/index.html.erb +++ b/apps/workbench/app/views/application/index.html.erb @@ -1,14 +1,16 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% content_for :page_title do %> -<%= controller.model_class.to_s.pluralize.underscore.capitalize.gsub('_', ' ') %> +<%= controller.controller_name.humanize.capitalize %> <% end %> <% content_for :tab_line_buttons do %> -<% if controller.model_class.creatable? %> -<%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", - { action: 'create', return_to: request.url }, - { class: 'btn btn-primary pull-right' } %> -<% end %> + <% if controller.model_class.creatable? %> + <%= render partial: 'create_new_object_button' %> + <% end %> <% end %>