X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8010ff47f31c6cb38a21cf72de6b0ab8def81d17..589d2b599714a5e3c239aa25029f1a0a4261f520:/apps/workbench/app/views/application/404.html.erb diff --git a/apps/workbench/app/views/application/404.html.erb b/apps/workbench/app/views/application/404.html.erb index c1f48bd851..40d73b9a73 100644 --- a/apps/workbench/app/views/application/404.html.erb +++ b/apps/workbench/app/views/application/404.html.erb @@ -1,11 +1,20 @@ +<% + if (controller.andand.action_name == 'show') and params[:uuid] + class_name = controller.model_class.to_s.underscore.humanize(capitalize: false) + req_item = safe_join([class_name, " with UUID ", + raw(""), params[:uuid], raw("")], "") + else + req_item = "page you requested" + end +%> +

Not Found

-

The item you requested was not found. +

The <%= req_item %> was not found. -<% if controller.andand.action_name == 'show' %> +<% if class_name %> Perhaps you'd like to -<%= link_to("browse all #{controller.model_class.to_s.underscore.pluralize.humanize(capitalize: false)}", - action: :index) %>? +<%= link_to("browse all #{class_name.pluralize}", action: :index) %>? <% end %>