X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f1d8f4de37ff66b21330ffe500c9725620ec9614..11085f87c952c7e46a15c88e144190cac32b95a8:/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 99cf64fcea..3e2a608ed7 100644 --- a/apps/workbench/app/views/application/index.html.erb +++ b/apps/workbench/app/views/application/index.html.erb @@ -1,26 +1,30 @@ -<% 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' } %> +<% content_for :page_title do %> +<%= controller.controller_name.humanize.capitalize %> <% end %> -<%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %> -<%= submit_tag 'Compare selected', {class: 'btn btn-primary', disabled: true, style: 'display: none'} %> - -<% end rescue nil %> -<% pane_list = (controller.class.to_s.sub(/Controller$/,'')+'Helper').constantize.index_pane_list rescue %w(recent) %> +<% content_for :tab_line_buttons do %> -