diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-01 13:22:06 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-01 14:50:44 +0200 |
commit | 80d9b2ebd2c6aa10f35b1e2dbbc3ef79b444e0fd (patch) | |
tree | 44e8c1d5ca01c9745496fb6f126d6b5f54e9c33c /server/sonar-web/src/main/hbs/overview/overview-coverage.hbs | |
parent | 2b46718bf1ade452db8e99c8550d908683d983b7 (diff) | |
download | sonarqube-80d9b2ebd2c6aa10f35b1e2dbbc3ef79b444e0fd.tar.gz sonarqube-80d9b2ebd2c6aa10f35b1e2dbbc3ef79b444e0fd.zip |
SONAR-6331 update the style of the overview page
Diffstat (limited to 'server/sonar-web/src/main/hbs/overview/overview-coverage.hbs')
-rw-r--r-- | server/sonar-web/src/main/hbs/overview/overview-coverage.hbs | 92 |
1 files changed, 25 insertions, 67 deletions
diff --git a/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs b/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs index a46eb394a94..bdca7c4d95b 100644 --- a/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs +++ b/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs @@ -1,68 +1,26 @@ -<h6 class="note">{{t 'overview.coverage'}}</h6> +<div class="overview-highlight"> + <h6 class="note">{{t 'overview.coverage'}}</h6> + <div class="overview-main-measure"> + {{#notNull coverage}} + <a href="{{urlForDrilldown componentKey 'overall_coverage'}}">{{formatMeasure coverage 'PERCENT'}}</a> + {{else}} + – + {{/notNull}} + </div> + {{#notNull coverage3}} + <div class="spacer-top"> + <span class="overview-measure {{#gt coverage3 0}}text-success{{/gt}}{{#lt coverage3 0}}text-danger{{/lt}}">{{formatMeasureVariation coverage3 'PERCENT'}}</span> + <span class="note">{{period3Name}}</span> + </div> + {{/notNull}} + {{#notNull newCoverage3}} + <div class="spacer-top"> + <a class="overview-measure spacer-top" href="{{urlForDrilldown componentKey 'new_overall_coverage' 3}}">{{formatMeasure newCoverage3 'PERCENT'}}</a> + <span class="note">on new code</span> + </div> + {{/notNull}} +</div> -<table class="width100"> - <tr> - <td class="width-55"> - <div class="overview-main-measure"> - <a href="{{urlForDrilldown componentKey 'overall_coverage'}}">{{formatMeasure coverage 'PERCENT'}}</a> - </div> - <div class="overview-trend"> - <div id="overview-coverage-trend" data-width="100" data-height="30" data-color="#4b9fd5"></div> - </div> - </td> - <td class="width-15"> - {{#notNull coverage1}} - <a class="overview-measure" href="{{urlForDrilldown componentKey 'overall_coverage' 1}}"> - {{formatMeasureVariation coverage1 'PERCENT'}} - </a> - <p class="note">{{period1Name}}</p> - {{/notNull}} - </td> - <td class="width-15"> - {{#notNull coverage2}} - <a class="overview-measure" href="{{urlForDrilldown componentKey 'overall_coverage' 2}}"> - {{formatMeasureVariation coverage2 'PERCENT'}} - </a> - <p class="note">{{period2Name}}</p> - {{/notNull}} - </td> - <td class="width-15"> - {{#notNull coverage3}} - <a class="overview-measure" href="{{urlForDrilldown componentKey 'overall_coverage' 3}}"> - {{formatMeasureVariation coverage3 'PERCENT'}} - </a> - <p class="note">{{period3Name}}</p> - {{/notNull}} - </td> - </tr> - <tr> - <td class="width-55"></td> - <td class="width-15"> - {{#notNull newCoverage1}} - <div class="spacer-top"></div> - <a class="overview-measure" href="{{urlForDrilldown componentKey 'new_overall_coverage' 1}}"> - {{formatMeasure newCoverage1 'PERCENT'}} - </a> - <p class="note">on new code</p> - {{/notNull}} - </td> - <td class="width-15"> - {{#notNull newCoverage2}} - <div class="spacer-top"></div> - <a class="overview-measure spacer-top" href="{{urlForDrilldown componentKey 'new_overall_coverage' 2}}"> - {{formatMeasure newCoverage2 'PERCENT'}} - </a> - <p class="note">on new code</p> - {{/notNull}} - </td> - <td class="width-15"> - {{#notNull newCoverage3}} - <div class="spacer-top"></div> - <a class="overview-measure spacer-top" href="{{urlForDrilldown componentKey 'new_overall_coverage' 3}}"> - {{formatMeasure newCoverage3 'PERCENT'}} - </a> - <p class="note">on new code</p> - {{/notNull}} - </td> - </tr> -</table> +<div class="overview-trend"> + <div class="overview-sparkline" id="overview-coverage-trend" data-width="300" data-height="50" data-color="#f3ca8e" data-type="PERCENT"></div> +</div> |