diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-23 11:45:16 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-23 11:45:16 +0200 |
commit | 9be8dbadcb5f991b6a9a507136efe61e60e9bc4d (patch) | |
tree | 71bac776c314ade657eaa5262fa9c23180f15514 /sonar-server | |
parent | 8cade89bf8472a48c11033340b4ab4ede706b6e1 (diff) | |
download | sonarqube-9be8dbadcb5f991b6a9a507136efe61e60e9bc4d.tar.gz sonarqube-9be8dbadcb5f991b6a9a507136efe61e60e9bc4d.zip |
SONAR-2414 do not display the coverage option if the measure is not computed
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb index d69666a4e54..2ce1a913233 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb @@ -23,7 +23,7 @@ <li class="first"> <span class="note">Color:</span> <select name="color" onchange="document.forms['cloudform'].submit()"> - <% if @snapshot.measure(@color_metric) %> + <% if @snapshot.measure('coverage') %> <option value="coverage" <%= 'selected' if @color_metric.key=='coverage' -%>>Coverage</option> <% end %> <option value="violations_density" <%= 'selected' if @color_metric.key=='violations_density' -%>>Rules compliance</option> |