X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3c2ad38a0335977ce015c1b54267d466d85d2d1b..e34bc76fa1f721aaeb494b31e361ece19cbfaa1b:/apps/workbench/app/views/layouts/application.html.erb
diff --git a/apps/workbench/app/views/layouts/application.html.erb b/apps/workbench/app/views/layouts/application.html.erb
index 32a0f9194e..3b4c7a2f74 100644
--- a/apps/workbench/app/views/layouts/application.html.erb
+++ b/apps/workbench/app/views/layouts/application.html.erb
@@ -14,7 +14,7 @@
- <% if current_user %>
+ <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>
<% end %>
@@ -34,10 +34,6 @@
@media (max-width: 979px) { body { padding-top: 0; } }
- .navbar .nav li.nav-separator > span.glyphicon.glyphicon-arrow-right {
- padding-top: 1.25em;
- }
-
@media (max-width: 767px) {
.breadcrumbs {
display: none;
@@ -56,39 +52,10 @@
- <%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
+ <%= Rails.configuration.site_name.downcase rescue Rails.application.class.parent_name %>
-
- <% if current_user %>
- <% if content_for?(:breadcrumbs) %>
- <%= yield(:breadcrumbs) %>
- <% else %>
-
- -
- <% if @object and \
- ((@name_link and (o = Group.find?(@name_link.tail_uuid)))\
- or (o = Group.find?(@object.owner_uuid))) %>
- <%= link_to(o.name, folder_path(o.uuid)) %>
- <% else %>
- <%= link_to(
- controller.controller_name.humanize.downcase,
- url_for({controller: params[:controller]})) %>
- <% end %>
-
- <% if params[:action] != 'index' %>
- -
-
-
- -
- <%= link_to_if_arvados_object (@name_link || @object), {friendly_name: true}, {data: {object_uuid: (@name_link.andand.uuid || @object.andand.uuid), name: 'name'}} %>
-
- <% end %>
- <% end %>
- <% end %>
-
-
-
@@ -107,67 +74,51 @@
-->
-
-
- <% if current_user.is_active %>
- <% end %>
- -
-
+ <% if current_user.andand.is_active %>
+ <% begin %>
+
+ <% rescue ArvadosApiClient::NotLoggedInException %>
+ <% raise # Let ApplicationController handle this. %>
+ <% rescue ArvadosApiClient::ApiError # Just skip rendering projects. %>
+ <% end %>
+ <% end %>
+
<%= yield %>
-
-
<%= yield :footer_html %>
<%= piwik_tracking_tag %>
<%= javascript_tag do %>