]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2414 do not display the coverage option if the measure is not computed
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 23 Jun 2011 09:45:16 +0000 (11:45 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 23 Jun 2011 09:45:16 +0000 (11:45 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb

index d69666a4e5441f2943a00f5f6a46f0013826cb8e..2ce1a913233c22a8cbdf1c28d95bb2c4f628cddd 100644 (file)
@@ -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>