From 956b205fdfa8bd439df42b0ed6142ddc9b4f9ad8 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 4 Mar 2011 11:10:34 +0100 Subject: [PATCH] SONAR-2218 improve header: do not display options block if no options --- .../main/webapp/WEB-INF/app/views/browse/_options.html.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/browse/_options.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/browse/_options.html.erb index db84ebf798a..2b13e1736d4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/browse/_options.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/browse/_options.html.erb @@ -1,3 +1,7 @@ +<% display_options = @scm_available || @expandable || @snapshot.project_snapshot.periods? || @display_violations + if display_options +%> +