X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/63f9b5374e01394486a07dba4f9a43cfd76707e3..ce408713e3067fc278a5a8f9c2d534567f65c636:/apps/workbench/app/views/layouts/application.html.erb?ds=sidebyside
diff --git a/apps/workbench/app/views/layouts/application.html.erb b/apps/workbench/app/views/layouts/application.html.erb
index bca12e974d..9af00d5fd2 100644
--- a/apps/workbench/app/views/layouts/application.html.erb
+++ b/apps/workbench/app/views/layouts/application.html.erb
@@ -2,8 +2,16 @@
- <%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
+
+ <% if content_for? :page_title %>
+ <%= yield :page_title %>
+ <% else %>
+ <%= Rails.configuration.site_name %>
+ <% end %>
+
+
+
<%= stylesheet_link_tag "application", :media => "all" %>
@@ -14,57 +22,107 @@
<%= yield :js %>
<% end %>
-
-
-
-
-
-
-
<%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
-
-
- <% [
- [false, 'Keys', authorized_keys_path],
- [false, 'VMs', virtual_machines_path],
- [false, 'Repos', repositories_path],
- [true, 'Data', collections_path],
- [true, 'Groups', groups_path],
- [true, 'Pipeline Templates', pipeline_templates_path],
- [true, 'Pipeline Instances', pipeline_instances_path],
- [false, 'Jobs', jobs_path]
- ].each do |admin_only, name, path| %>
- <% if !admin_only or (current_user and current_user.is_admin) %>
- - ><%= name %>
- <% end %>
- <% end %>
-
-
- <% if current_user -%>
- - <%= current_user.email %>
- - Log out
- <% else -%>
- - Log in
- <% end -%>
-
-
-
+
<%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
+
+
+ <% if current_user -%>
+ - <%= current_user.email %>
+ - Log out
+ <% else -%>
+ - Log in
+ <% end -%>
+
+
+ <% if current_user.andand.is_active %>
+
+ <% end %>
- <%= yield %>
+ <%= content_for?(:breadcrumbs) ? yield(:breadcrumbs) : render(partial: 'breadcrumbs') %>
+
+
+ <%= yield %>
+
+ <%= piwik_tracking_tag %>
+ <%= javascript_tag do %>
+ <%= yield :footer_js %>
+ <% end %>