1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 if (controller.andand.action_name == 'show') and params[:uuid]
7 class_name = controller.model_class.to_s.underscore
8 class_name_h = class_name.humanize(capitalize: false)
9 req_item = safe_join([class_name_h, " with UUID ",
10 raw("<code>"), params[:uuid], raw("</code>")], "")
11 req_item_plain_text = safe_join([class_name_h, " with UUID ", params[:uuid]])
13 req_item = "page you requested"
14 req_item_plain_text = "page you requested"
20 <p>The <%= req_item %> was not found.</p>
22 <% if !current_user %>
25 <%= link_to(arvados_api_client.arvados_login_url(return_to: strip_token_from_path(request.url)),
26 {class: "btn btn-primary report-issue-modal-window"}) do %>
27 <i class="fa fa-fw fa-sign-in"></i> Log in
32 <% elsif class_name %>
35 Perhaps you'd like to <%= link_to("browse all
36 #{class_name_h.pluralize}", action: :index, controller:
37 class_name.tableize) %>?
42 <% error_message = "The #{req_item_plain_text} was not found." %>
43 <%= render :partial => "report_error", :locals => {error_message: error_message, error_type: '404'} %>