Remove extra spinner. closes #3301
[arvados.git] / apps / workbench / app / views / application / 404.html.erb
index c1f48bd851edeece98925cbc549cc6e9d55c807e..40d73b9a737141e90381e326d44c1f5c20e615b3 100644 (file)
@@ -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("<code>"), params[:uuid], raw("</code>")], "")
+   else
+     req_item = "page you requested"
+   end
+%>
+
 <h2>Not Found</h2>
 
-<p>The item you requested was not found.
+<p>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 %>
 
 </p>