diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-04 11:10:34 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-04 11:10:34 +0100 |
commit | 956b205fdfa8bd439df42b0ed6142ddc9b4f9ad8 (patch) | |
tree | 6022de427f9aeb71f9b107ad9deb85f0d6edf785 /sonar-server | |
parent | d351728221a206d4736b855a7c83b77dbe17c3a7 (diff) | |
download | sonarqube-956b205fdfa8bd439df42b0ed6142ddc9b4f9ad8.tar.gz sonarqube-956b205fdfa8bd439df42b0ed6142ddc9b4f9ad8.zip |
SONAR-2218 improve header: do not display options block if no options
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/browse/_options.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
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 +%> + <div id="source_options"> <script> applyOptions=function() { @@ -58,3 +62,4 @@ </table> </form> </div> +<% end %>
\ No newline at end of file |