]> source.dussan.org Git - sonarqube.git/commitdiff
do not display big trend icons
authorsimonbrandhof <simon.brandhof@gmail.com>
Thu, 9 Dec 2010 17:44:25 +0000 (17:44 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Thu, 9 Dec 2010 17:44:25 +0000 (17:44 +0000)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/code_coverage.html.erb
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/comments_duplications.html.erb
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb

index c52463487f66813ae7d2bd9e0feba81203653303..86506a2a9c20a2108f80ce64950c10457f5b76b7 100644 (file)
@@ -13,7 +13,7 @@
         <p class="title">Code coverage</p>
         <p>
           <span class="big"><%= format_measure(code_coverage_measure, :suffix => '', :url => url_for_drilldown(Metric::COVERAGE), :default => '-') %></span>
-          <%= dashboard_configuration.variation? ? format_variation(code_coverage_measure) : trend_icon(code_coverage_measure, :big => true) -%>
+          <%= dashboard_configuration.variation? ? format_variation(code_coverage_measure) : trend_icon(code_coverage_measure) -%>
         </p>
         <% line_coverage=measure(Metric::LINE_COVERAGE)
           if line_coverage %>
@@ -55,7 +55,7 @@
       <h3>Test success</h3>
       <p><span class="big">
         <%= format_measure(success_percentage, :suffix => '', :url => url_for_drilldown(success_percentage)) %></span>
-        <%= dashboard_configuration.variation? ? format_variation(success_percentage) : trend_icon(success_percentage, :big => true) -%>
+        <%= dashboard_configuration.variation? ? format_variation(success_percentage) : trend_icon(success_percentage) -%>
       </p>
       <p>
         <%= format_measure(Metric::TEST_FAILURES, :suffix => ' failures', :url => url_for_drilldown(Metric::TEST_FAILURES)) %>
index ff26313e0093ae363c123ff8673eb0f8b1c20784..0f884137877d2e7f68e447d9127edc38556dade4 100644 (file)
@@ -19,7 +19,7 @@
                      <h3>Comments</h3>
                      <p>
                        <span class="big"><%= format_measure(comment_lines_density, :suffix => '', :url => url_for_drilldown(comment_lines_density)) %></span>
-                       <%= dashboard_configuration.variation? ? format_variation(comment_lines_density) : trend_icon(comment_lines_density, :big => true) -%>
+                       <%= dashboard_configuration.variation? ? format_variation(comment_lines_density) : trend_icon(comment_lines_density) -%>
                      </p>
                      <p>
                        <%= format_measure(comment_lines, :suffix => ' lines', :url => url_for_drilldown(comment_lines)) %>
@@ -53,7 +53,7 @@
                      <h3>Duplications</h3>
                      <p>
                        <span class="big"><%= format_measure(duplicated_lines_density, :suffix => '', :url => url_for_drilldown(Metric::DUPLICATED_LINES, :highlight =>  'duplicated_lines_density')) %></span>
-                       <%= dashboard_configuration.variation? ? format_variation(duplicated_lines_density) : trend_icon(duplicated_lines_density, :big => true) -%>
+                       <%= dashboard_configuration.variation? ? format_variation(duplicated_lines_density) : trend_icon(duplicated_lines_density) -%>
                      </p>
                      <p>
                        <%= format_measure(duplicated_lines, :suffix => ' lines', :url => url_for_drilldown(duplicated_lines)) %>
index c4ca576fe3a24d60df8d5d5ef27ebdb43444cc3c..9b25bfb986a2afe7678bdf7c7ea0ae50238695ad 100644 (file)
@@ -17,25 +17,25 @@ complexity=measure('complexity')
          <% if function_complexity %>
            <p>
              <span class="big"><%= format_measure(function_complexity, :suffix => '', :url => url_for_drilldown(function_complexity)) -%></span>/ method
-             <%= dashboard_configuration.variation? ? format_variation(function_complexity) : trend_icon(function_complexity, :big => true) -%>
+             <%= dashboard_configuration.variation? ? format_variation(function_complexity) : trend_icon(function_complexity) -%>
            </p>
          <% end %>
          <% if paragraph_complexity %>
            <p>
               <span class="big"><%= format_measure(paragraph_complexity, :suffix => '', :url => url_for_drilldown(paragraph_complexity)) -%></span>/ paragraph
-              <%= dashboard_configuration.variation? ? format_variation(paragraph_complexity) : trend_icon(paragraph_complexity, :big => true) -%>
+              <%= dashboard_configuration.variation? ? format_variation(paragraph_complexity) : trend_icon(paragraph_complexity) -%>
            </p>
          <% end %>
          <% if class_complexity %>
            <p>
              <span class="big"><%= format_measure(class_complexity, :suffix => '', :url => url_for_drilldown(class_complexity)) -%></span>/ class
-             <%= dashboard_configuration.variation? ? format_variation(class_complexity) : trend_icon(class_complexity, :big => true) -%>
+             <%= dashboard_configuration.variation? ? format_variation(class_complexity) : trend_icon(class_complexity) -%>
            </p>
          <% end %>
          <% if file_complexity %>
            <p>
               <span class="big"><%= format_measure(file_complexity, :suffix => '', :url => url_for_drilldown(file_complexity)) -%></span>/ file
-              <%= dashboard_configuration.variation? ? format_variation(file_complexity) : trend_icon(file_complexity, :big => true) -%>
+              <%= dashboard_configuration.variation? ? format_variation(file_complexity) : trend_icon(file_complexity) -%>
            </p>
          <% end %>
          <% if complexity %>
index 1e8e44cf7926979119e2e7c2b9d8c01308560607..dd01dc4e71583d188819a6eb567d2d6d9c0718fd 100644 (file)
@@ -17,7 +17,7 @@
                            <% if ncloc %>
                              <p>
                                <span class="big"><%= format_measure(ncloc, :suffix => '', :url => url_for_drilldown(ncloc)) -%></span>
-                               <%= dashboard_configuration.variation? ? format_variation(ncloc) : trend_icon(ncloc, :big => true) -%>
+                               <%= dashboard_configuration.variation? ? format_variation(ncloc) : trend_icon(ncloc) -%>
                              </p>
                              <%
                                generated_ncloc=measure('generated_ncloc')
@@ -27,7 +27,7 @@
                              <% end %>
                              <p><%= format_measure(lines, :suffix => ' lines', :url => url_for_drilldown(lines)) -%> <%= dashboard_configuration.variation? ? format_variation(lines) : trend_icon(lines) -%></p>
                            <% else%>
-                             <p><span class="big"><%= format_measure(lines, :suffix => '', :url => url_for_drilldown(lines)) -%> <%= trend_icon(lines, :big => true) -%></span></p>
+                             <p><span class="big"><%= format_measure(lines, :suffix => '', :url => url_for_drilldown(lines)) -%> <%= trend_icon(lines) -%></span></p>
                            <% end %>
                            <%
                              generated_lines=measure('generated_lines')
                        <h3>Classes</h3>
                        <p>
                          <span class="big"><%= format_measure(classes, :url => url_for_drilldown(classes)) -%></span>
-                         <%= dashboard_configuration.variation? ? format_variation(classes) : trend_icon(classes, :big => true) -%>
+                         <%= dashboard_configuration.variation? ? format_variation(classes) : trend_icon(classes) -%>
                        </p>
                            <p><%= format_measure(packages, :suffix => ' packages', :url => url_for_drilldown(packages)) -%> <%= dashboard_configuration.variation? ? format_variation(packages) : trend_icon(packages) -%></p>
                      <% else %>
                        <h3>Files</h3>
                        <p><span class="big"><%= format_measure(files, :url => url_for_drilldown(files)) -%></span>
-                         <%= dashboard_configuration.variation? ? format_variation(files) : trend_icon(files, :big => true) -%>
+                         <%= dashboard_configuration.variation? ? format_variation(files) : trend_icon(files) -%>
                        </p>
                            <p><%= format_measure('directories', :suffix => ' directories', :url => url_for_drilldown('directories')) -%> <%= dashboard_configuration.variation? ? format_variation('directories') : trend_icon('directories') -%></p>
                      <% end %>