X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7a98271d94163cdc4afa5bfcf275db353bc062d2..4f1085f353d44600643a8e9dd6b43a39131e7946:/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 3f312405b5..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,8 +12,8 @@ 'data-target' => '#user-setup-modal-window', return_to: request.url} %> <% else %> - <%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", - { action: 'create', return_to: request.url }, + <%= button_to "Add a new #{controller.controller_name.singularize.humanize.downcase}", + { action: 'create' }, { class: 'btn btn-primary pull-right' } %> <% end %>