projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #10645
[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..4c7896f728883a0de6b46218d3dc4eae1100acc7 100644
(file)
--- a/
apps/workbench/app/views/application/index.html.erb
+++ b/
apps/workbench/app/views/application/index.html.erb
@@
-1,14
+1,12
@@
<% 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 %>