diff options
Diffstat (limited to 'server/sonar-web/src/main/hbs')
10 files changed, 4 insertions, 173 deletions
diff --git a/server/sonar-web/src/main/hbs/nav/nav-context-navbar.hbs b/server/sonar-web/src/main/hbs/nav/nav-context-navbar.hbs index 74d0196ce6a..b86d833e3d9 100644 --- a/server/sonar-web/src/main/hbs/nav/nav-context-navbar.hbs +++ b/server/sonar-web/src/main/hbs/nav/nav-context-navbar.hbs @@ -21,8 +21,8 @@ </div> <ul class="nav navbar-nav nav-tabs"> - <li {{#isActiveLink '/overview'}}class="active"{{/isActiveLink}}> - <a href="{{link '/overview/index?id=' contextKeyEncoded }}">{{t 'overview.page'}}</a> + <li {{#if isOverviewActive}}class="active"{{/if}}> + <a href="{{link '/dashboard/index?id=' contextKeyEncoded }}">{{t 'overview.page'}}</a> </li> <li {{#isActiveLink '/components'}}class="active"{{/isActiveLink}}> <a href="{{link '/components/index/' contextId }}">{{t 'components.page'}}</a> @@ -46,11 +46,11 @@ <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t 'more'}} <i class="icon-dropdown"></i></a> <ul class="dropdown-menu"> <li class="dropdown-header">{{t 'layout.dashboards'}}</li> - {{#each contextDashboards}} + {{#withoutFirst contextDashboards}} <li> <a href="{{link url}}">{{name}}</a> </li> - {{/each}} + {{/withoutFirst}} {{#if canManageContextDashboards}} <li class="small-divider"></li> <li> @@ -72,11 +72,5 @@ {{/if}} </ul> </li> - <li class="js-meta-dropdown dropdown pull-right"> - <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t 'info'}} <i class="icon-dropdown"></i></a> - <div class="dropdown-menu dropdown-menu-right panel abs-width-400"> - <form class="js-meta"></form> - </div> - </li> </ul> </div> diff --git a/server/sonar-web/src/main/hbs/overview/_overview-gate-condition.hbs b/server/sonar-web/src/main/hbs/overview/_overview-gate-condition.hbs deleted file mode 100644 index c3c278b9fd9..00000000000 --- a/server/sonar-web/src/main/hbs/overview/_overview-gate-condition.hbs +++ /dev/null @@ -1,15 +0,0 @@ -<li class="overview-gate-condition spacer-bottom text-ellipsis"> - <i class="{{alertIconClass level}}"></i> - {{#canHaveDrilldownUrl metric period}} - <a href="{{urlForDrilldown ../../componentKey metric period periodDate}}" - class="overview-status overview-status-{{level}}" - title="{{#notEq level 'OK'}}{{t 'quality_gates.operator' op 'short'}} {{/notEq}}{{#eq level 'ERROR'}}{{formatMeasure error type}}{{/eq}}{{#eq level 'WARN'}}{{formatMeasure warning type}}{{/eq}}" - data-toggle="tooltip" data-placement="bottom">{{formatMeasure actual type}}</a> - {{else}} - <span class="overview-status overview-status-{{level}}" - title="{{#notEq level 'OK'}}{{t 'quality_gates.operator' op 'short'}} {{/notEq}}{{#eq level 'ERROR'}}{{formatMeasure error type}}{{/eq}}{{#eq level 'WARN'}}{{formatMeasure warning type}}{{/eq}}" - data-toggle="tooltip" data-placement="bottom">{{formatMeasure actual type}}</span> - {{/canHaveDrilldownUrl}} - <span class="note text-lowercase" style="padding-top: 4px;">{{t 'metric' metric 'name'}}</span> - <span class="note text-lowercase">{{default periodName period}}</span> -</li> diff --git a/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs b/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs deleted file mode 100644 index ce3d7a41109..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-coverage.hbs +++ /dev/null @@ -1,25 +0,0 @@ -<header class="overview-card-header page-header"> - <h2 class="page-title">{{t 'overview.testing'}}</h2> -</header> - -<div class="overview-highlight"> - <h6 class="note">{{t 'metric.coverage.name'}}</h6> - <div class="overview-main-measure"> - {{#notNull coverage}} - <a href="{{urlForDrilldown componentKey 'coverage'}}">{{formatMeasure coverage 'PERCENT'}}</a> - {{else}} - – - {{/notNull}} - </div> - {{#notNull newCoverage3}} - <h6 class="note">{{period3Name}}</h6> - <a class="overview-measure spacer-top" - href="{{urlForDrilldown componentKey 'new_coverage' 3}}">{{formatMeasure newCoverage3 'PERCENT'}}</a> - <span class="note">{{t 'overview.on_new_code'}}</span> - {{/notNull}} -</div> - -<div class="overview-trend"> - <div class="overview-sparkline" id="overview-coverage-trend" data-height="120" data-color="#f3ca8e" - data-type="PERCENT"></div> -</div> diff --git a/server/sonar-web/src/main/hbs/overview/overview-debt.hbs b/server/sonar-web/src/main/hbs/overview/overview-debt.hbs deleted file mode 100644 index 6c4e6445de6..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-debt.hbs +++ /dev/null @@ -1,21 +0,0 @@ -<header class="overview-card-header page-header"> - <h2 class="page-title">{{t 'overview.debt'}}</h2> -</header> - -<div class="overview-highlight"> - <h6 class="note">{{t 'metric.sqale_index.name'}}</h6> - <div class="overview-main-measure"> - <a href="{{urlForDrilldown componentKey 'sqale_index'}}">{{formatMeasure debt 'WORK_DUR'}}</a> - </div> - {{#notNull issues3}} - <h6 class="note">{{period3Name}}</h6> - <a href="{{urlForDrilldown componentKey 'new_technical_debt'}}" - class="overview-measure {{#gt newDebt 0}}text-danger{{else}}text-success{{/gt}}">{{formatMeasure newDebt 'WORK_DUR'}}</a> - <span class="note">{{t 'overview.new'}}</span> - {{/notNull}} -</div> - -<div class="overview-trend"> - <div class="overview-sparkline" id="overview-debt-trend" data-height="120" data-color="#f3ca8e" - data-type="WORK_DUR"></div> -</div> diff --git a/server/sonar-web/src/main/hbs/overview/overview-duplications.hbs b/server/sonar-web/src/main/hbs/overview/overview-duplications.hbs deleted file mode 100644 index 6c675595748..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-duplications.hbs +++ /dev/null @@ -1,22 +0,0 @@ -<header class="overview-card-header page-header"> - <h2 class="page-title">{{t 'overview.duplications'}}</h2> -</header> - -<div class="overview-highlight"> - <h6 class="note">{{t 'metric.duplicated_lines_density.short_name'}}</h6> - <div class="overview-main-measure"> - <a href="{{urlForDrilldown componentKey 'duplicated_lines_density'}}"> - {{formatMeasure duplications 'PERCENT'}} - </a> - </div> - {{#notNull duplications3}} - <h6 class="note">{{period3Name}}</h6> - <a class="overview-measure {{#gt duplications3 0}}text-danger{{/gt}}{{#lt duplications3 0}}text-success{{/lt}}" - href="{{urlForDrilldown componentKey 'duplicated_lines_density' 3}}">{{formatMeasureVariation duplications3 'PERCENT'}}</a> - {{/notNull}} -</div> - -<div class="overview-trend"> - <div class="overview-sparkline" id="overview-duplications-trend" data-height="120" data-color="#f3ca8e" - data-type="PERCENT"></div> -</div> diff --git a/server/sonar-web/src/main/hbs/overview/overview-gate.hbs b/server/sonar-web/src/main/hbs/overview/overview-gate.hbs deleted file mode 100644 index a354e431b1e..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-gate.hbs +++ /dev/null @@ -1,22 +0,0 @@ -<header class="overview-card-header page-header"> - <h2 class="page-title">{{t 'overview.gate'}}</h2> -</header> - -{{#notEmpty gateConditions}} - <div class="columns"> - <div class="column-half"> - <ul> - {{#eachEven gateConditions}} - {{> '_overview-gate-condition'}} - {{/eachEven}} - </ul> - </div> - <div class="column-half"> - <ul> - {{#eachOdd gateConditions}} - {{> '_overview-gate-condition'}} - {{/eachOdd}} - </ul> - </div> - </div> -{{/notEmpty}} diff --git a/server/sonar-web/src/main/hbs/overview/overview-issues.hbs b/server/sonar-web/src/main/hbs/overview/overview-issues.hbs deleted file mode 100644 index 09940d8cc95..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-issues.hbs +++ /dev/null @@ -1,21 +0,0 @@ -<header class="overview-card-header page-header"> - <h2 class="page-title">{{t 'overview.issues'}}</h2> -</header> - -<div class="overview-highlight"> - <h6 class="note">{{t 'overview.issues'}}</h6> - <div class="overview-main-measure"> - <a href="{{urlForIssuesOverview componentKey}}">{{formatMeasure issues 'SHORT_INT'}}</a> - </div> - {{#notNull issues3}} - <h6 class="note">{{period3Name}}</h6> - <a href="{{urlForIssuesOverview componentKey period3Date}}" - class="overview-measure {{#gt issues3 0}}text-danger{{else}}text-success{{/gt}}">{{formatMeasure issues3 'INT'}}</a> - <span class="note">{{t 'overview.new'}}</span> - {{/notNull}} -</div> - -<div class="overview-trend"> - <div class="overview-sparkline" id="overview-issues-trend" data-height="120" data-color="#f3ca8e" - data-type="SHORT_INT"></div> -</div> diff --git a/server/sonar-web/src/main/hbs/overview/overview-layout.hbs b/server/sonar-web/src/main/hbs/overview/overview-layout.hbs deleted file mode 100644 index a0a7d067a0e..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-layout.hbs +++ /dev/null @@ -1 +0,0 @@ -<div class="js-region"></div> diff --git a/server/sonar-web/src/main/hbs/overview/overview-main-layout.hbs b/server/sonar-web/src/main/hbs/overview/overview-main-layout.hbs deleted file mode 100644 index 827246359f9..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-main-layout.hbs +++ /dev/null @@ -1,12 +0,0 @@ -<div class="columns"> - <div class="column-half"> - <div class="overview-card overview-gate" id="overview-gate"></div> - <div class="overview-card" id="overview-issues"></div> - <div class="overview-card" id="overview-debt"></div> - </div> - <div class="column-half"> - <div class="overview-card" id="overview-size"></div> - <div class="overview-card" id="overview-coverage"></div> - <div class="overview-card" id="overview-duplications"></div> - </div> -</div> diff --git a/server/sonar-web/src/main/hbs/overview/overview-size.hbs b/server/sonar-web/src/main/hbs/overview/overview-size.hbs deleted file mode 100644 index 907e4727c9f..00000000000 --- a/server/sonar-web/src/main/hbs/overview/overview-size.hbs +++ /dev/null @@ -1,24 +0,0 @@ -<header class="overview-card-header page-header"> - <h2 class="page-title">{{t 'overview.size'}}</h2> -</header> - -<div class="overview-highlight"> - <h6 class="note">{{t 'metric.ncloc.name'}}</h6> - <div class="overview-main-measure"> - <a href="{{urlForDrilldown componentKey 'ncloc'}}">{{formatMeasure ncloc 'SHORT_INT'}}</a> - </div> - - {{#notNull ncloc3}} - <div class="spacer-top"> - <h6 class="note">{{period3Name}}</h6> - <span class="overview-measure">{{formatMeasureVariation ncloc3 'SHORT_INT'}}</span> - </div> - {{/notNull}} -</div> - -<div class="overview-trend"> - <div class="overview-sparkline" id="overview-size-trend" data-height="120" data-color="#f3ca8e" - data-type="SHORT_INT"></div> -</div> - - |