projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '16265-security-updates' into dependabot/bundler/apps/workbench/nokogiri...
[arvados.git]
/
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 67b50040a49702266f37c09e28b30a3ef05b743a..7db8559b37ce3d3e6fa34d9332104e6ae3e3a2ad 100644
(file)
--- 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 %>
<% 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 %>
<% 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 %>
<% end %>