3235: Merge branch 'master' into 3235-top-nav-site-search
[arvados.git] / apps / workbench / app / views / application / 404.html.erb
1 <%
2    if (controller.andand.action_name == 'show') and params[:uuid]
3      class_name = controller.model_class.to_s.underscore.humanize(capitalize: false)
4      req_item = safe_join([class_name, " with UUID ",
5                            raw("<code>"), params[:uuid], raw("</code>")], "")
6    else
7      req_item = "page you requested"
8    end
9 %>
10
11 <h2>Not Found</h2>
12
13 <p>The <%= req_item %> was not found.
14
15 <% if class_name %>
16 Perhaps you'd like to
17 <%= link_to("browse all #{class_name.pluralize}", action: :index, controller: class_name.tableize) %>?
18 <% end %>
19
20 </p>
21