From 1076b57c3d701df3ceaa4d54973ccc533729f097 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 8 Aug 2014 10:26:33 -0400 Subject: [PATCH] 3499: Do not show Home in breadcrumbs when viewing dashboard page. --- .../workbench/app/views/layouts/body.html.erb | 22 ++++++++++--------- .../app/views/projects/index.html.erb | 5 ----- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb index ef9ed08eec..a8c4584747 100644 --- a/apps/workbench/app/views/layouts/body.html.erb +++ b/apps/workbench/app/views/layouts/body.html.erb @@ -166,21 +166,23 @@ <% } %> - -
  • - <%= link_to project_path(current_user.uuid) do %> - Home - <% end %> -
  • - <% 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 %> diff --git a/apps/workbench/app/views/projects/index.html.erb b/apps/workbench/app/views/projects/index.html.erb index 9b3a0a0354..219bad262b 100644 --- a/apps/workbench/app/views/projects/index.html.erb +++ b/apps/workbench/app/views/projects/index.html.erb @@ -1,8 +1,3 @@ -<% content_for :breadcrumbs do %> - -
  • Home
  • -<% end %> -
    -- 2.30.2