X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3f94855e8f06d0c01ad9596f34a90e0c65e0be46..57d5e8e0f8e8c3871e2d95d14e3088c0a3f41a9b:/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 16d5ed3b60..ea6e7033cb 100644 --- a/apps/workbench/app/views/application/404.html.erb +++ b/apps/workbench/app/views/application/404.html.erb @@ -7,19 +7,33 @@ req_item_plain_text = safe_join([class_name_h, " with UUID ", params[:uuid]]) else req_item = "page you requested" + req_item_plain_text = "page you requested" end %>

Not Found

-

The <%= req_item %> was not found. +

The <%= req_item %> was not found.

-<% if class_name %> -Perhaps you'd like to -<%= link_to("browse all #{class_name_h.pluralize}", action: :index, controller: class_name.tableize) %>? -<% end %> +<% if !current_user %> + +

+ <%= link_to(arvados_api_client.arvados_login_url(return_to: strip_token_from_path(request.url)), + {class: "btn btn-primary report-issue-modal-window"}) do %> + Log in + <% end %> + to view private data. +

+ +<% elsif class_name %> -

+

+ Perhaps you'd like to <%= link_to("browse all + #{class_name_h.pluralize}", action: :index, controller: + class_name.tableize) %>? +

+ +<% end %> <% error_message = "The #{req_item_plain_text} was not found." %> <%= render :partial => "report_error", :locals => {error_message: error_message, error_type: '404'} %>