From: simonbrandhof Date: Fri, 4 Mar 2011 10:10:34 +0000 (+0100) Subject: SONAR-2218 improve header: do not display options block if no options X-Git-Tag: 2.7~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=956b205fdfa8bd439df42b0ed6142ddc9b4f9ad8;p=sonarqube.git SONAR-2218 improve header: do not display options block if no options --- 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 +%> +