X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c66afecd36cf7d91223b5db79f3e120954f8217d..30d63b582ed093d235ae4a9efdeda5de1d4e2f24:/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 06735c1fb7..20af6485b0 100644 --- a/apps/workbench/app/views/application/index.html.erb +++ b/apps/workbench/app/views/application/index.html.erb @@ -1,5 +1,5 @@ <% 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 %> @@ -12,7 +12,7 @@ 'data-target' => '#user-setup-modal-window', return_to: request.url} %> <% else %> - <%= button_to "Add a new #{controller.controller_name.humanize.downcase}", + <%= button_to "Add a new #{controller.controller_name.singularize.humanize.downcase}", { action: 'create' }, { class: 'btn btn-primary pull-right' } %> <% end %>