X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2ff5d889c8d169a85781d13edcf7988fb94cc248..d16e54da7e751807685f576d089d69417c9094b0:/apps/workbench/app/views/layouts/body.html.erb
diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb
index c703bc7004..fbbd0fac26 100644
--- a/apps/workbench/app/views/layouts/body.html.erb
+++ b/apps/workbench/app/views/layouts/body.html.erb
@@ -7,7 +7,12 @@
- <%= Rails.configuration.site_name.downcase rescue Rails.application.class.parent_name %>
+ <% site_name = Rails.configuration.site_name.downcase rescue Rails.application.class.parent_name %>
+ <% if current_user %>
+ <%= site_name %>
+ <% else %>
+ <%= site_name %>
+ <% end %>
@@ -18,105 +23,92 @@
<% if current_user %>
-
-
-
- <%= link_to(url_for(
- action: 'choose',
- controller: 'search',
- title: 'Search',
- action_name: 'Show',
- action_href: url_for(controller: :actions, action: :show),
- action_method: 'get',
- action_data: {selection_param: 'uuid', success: 'redirect-to-created-object'}.to_json),
- { class: "", remote: true, method: 'get' }) do %>
- Search
+ <% if current_user.is_active %>
+
+
+
<% end %>
-
-
-
-
-
- <% if current_user.is_active %>
-
-
@@ -140,46 +143,55 @@
-
-
- Home
+
+ Dashboard
- -
-
-
-
-
- <% project_breadcrumbs.each do |p| %>
+ <% if @name_link or @object %>
-
-
- <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
+ <%= link_to project_path(current_user.uuid) do %>
+ Home
+ <% end %>
+ <% project_breadcrumbs.each do |p| %>
+ -
+
+
+ -
+ <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
+
+ <% end %>
<% end %>
<% end %>
+ <%= render partial: 'browser_unsupported' %><%# requires JS support below %>
+
<%= yield %>
@@ -188,3 +200,5 @@
<%= yield :footer_html %>
+
+