From 9d13c2dd629e4e99e17ef05059d6e464e8968a54 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 5 Dec 2012 15:16:39 +0100 Subject: [PATCH] SONAR-3972 Remove permalink icon in the breadcrumbs bar - And also do not display the star and the "Configuration" dropdown when showing a review. --- .../app/controllers/comparison_controller.rb | 5 ---- .../app/views/layouts/_breadcrumb.html.erb | 26 ++++++------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb index 238de579673..a2ee45dbbc9 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb @@ -58,11 +58,6 @@ class ComparisonController < ApplicationController @metrics = Metric.by_keys(metrics) @metric_to_choose = Metric.all.select {|m| m.display? && !@metrics.include?(m)}.sort_by(&:short_name) - - # UI breadcrumb and permalink - unless @snapshots.empty? - @permalink = url_for :controller => 'comparison', :action => 'index', :sids => @snapshots.map {|s| s.id.to_s}.join(','), :metrics => @metrics.map {|m| m.key}.join(',') - end end def versions diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb index bc3d59fb704..1cef8792693 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb @@ -6,18 +6,13 @@