X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e8b1da0f4cf859ba6bc34e4390fbad097d7a00d9..86b14bac0b6413dd033285a4357cc7edd05a22b3:/apps/workbench/app/views/application/_title_and_buttons.html.erb diff --git a/apps/workbench/app/views/application/_title_and_buttons.html.erb b/apps/workbench/app/views/application/_title_and_buttons.html.erb index c2bd726775..822c904857 100644 --- a/apps/workbench/app/views/application/_title_and_buttons.html.erb +++ b/apps/workbench/app/views/application/_title_and_buttons.html.erb @@ -26,7 +26,8 @@ selection_param: 'uuid', success: 'redirect-to-created-object' }.to_json), - { class: "btn btn-sm btn-primary", remote: true, method: 'get', title: "Copy this #{object_class} to a different project" }) do %> + { class: "btn btn-sm btn-primary", remote: true, method: 'get', + title: "Make a copy this #{object_class}" }) do %> Copy to project... <% end %> <% end %> @@ -43,9 +44,23 @@ selection_param: 'uuid', success: 'redirect-to-created-object' }.to_json), - { class: "btn btn-sm btn-primary", remote: true, method: 'get', title: "Move this #{object_class} to a different project"}) do %> - Move... + { class: "btn btn-sm btn-primary", remote: true, method: 'get', + title: "Move this #{object_class} to a different project"}) do %> + Move <%=object_class%>... <% end %> <% end %> <% end %> <% end %> + +<% + # Display any flash messages in an alert. If there is any entry with "error" key, alert-danger is used. + flash_msg = '' + flash_msg_is_error = false + flash.each do |msg| + flash_msg_is_error ||= (msg[0]=='error') + flash_msg += ('

' + msg[1] + '

') + end + if flash_msg != '' +%> +
<%=flash_msg.html_safe%>
+<% end %>