]> source.dussan.org Git - sonarqube.git/commitdiff
Fix alignment of trend icons
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 26 Feb 2013 10:33:32 +0000 (11:33 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 26 Feb 2013 10:33:32 +0000 (11:33 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/complexity.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index 93aad44b733be5a133c3aa3b7f4869fc5392ba55..7e5729e8398554c39cfdd9287a80665889674e77 100644 (file)
@@ -14,25 +14,26 @@ complexity=measure('complexity')
          <h3><%= message('widget.complexity.name') -%></h3>
          <% if function_complexity %>
            <p>
-             <span class="big"><%= format_measure(function_complexity, :suffix => '', :url => url_for_drilldown(function_complexity)) %></span><%= message('widget.complexity.per_method.suffix') -%>
-             <%= dashboard_configuration.selected_period? ? format_variation(function_complexity) : trend_icon(function_complexity) -%>
+             <span class="big"><%= format_measure(function_complexity, :suffix => '', :url => url_for_drilldown(function_complexity)) %></span><%= message('widget.complexity.per_method.suffix') %>
+             <%= dashboard_configuration.selected_period? ? format_variation(function_complexity) : trend_icon(function_complexity) %>
            </p>
          <% end %>
          <% if class_complexity %>
            <p>
-             <span class="big"><%= format_measure(class_complexity, :suffix => '', :url => url_for_drilldown(class_complexity)) %></span></span><%= message('widget.complexity.per_class.suffix') -%>
-             <%= dashboard_configuration.selected_period? ? format_variation(class_complexity) : trend_icon(class_complexity) -%>
+             <span class="big"><%= format_measure(class_complexity, :suffix => '', :url => url_for_drilldown(class_complexity)) %></span></span><%= message('widget.complexity.per_class.suffix') %>
+             <%= dashboard_configuration.selected_period? ? 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></span><%= message('widget.complexity.per_file.suffix') -%>
-              <%= dashboard_configuration.selected_period? ? format_variation(file_complexity) : trend_icon(file_complexity) -%>
+              <span class="big"><%= format_measure(file_complexity, :suffix => '', :url => url_for_drilldown(file_complexity)) %></span></span><%= message('widget.complexity.per_file.suffix') %>
+              <%= dashboard_configuration.selected_period? ? format_variation(file_complexity) : trend_icon(file_complexity) %>
            </p>
          <% end %>
          <% if complexity %>
          <p>
-           <%= message('widget.complexity.total') -%>: <%= format_measure(complexity, :url => url_for_drilldown(complexity)) -%> <%= dashboard_configuration.selected_period? ? format_variation(complexity) : trend_icon(complexity) -%>
+           <%= message('widget.complexity.total') -%>: <%= format_measure(complexity, :url => url_for_drilldown(complexity)) %>
+           <%= dashboard_configuration.selected_period? ? format_variation(complexity) : trend_icon(complexity) %>
          </p>
          <% end %>
         </div>
index ecf269dcdd57993d52cc6e776d6de251f2fe7549..7c98aacdfec9d8bdc738900b78145e870042dc64 100644 (file)
@@ -432,7 +432,7 @@ table.data td.small, table.data th.small {
 }
 
 table.data th img, table.data td img {
-  vertical-align: top;
+  vertical-align: sub;
 }
 
 .data thead tr.total {