<div class="component-viewer-header-measures-scope">
<a data-scope="issues" class="component-viewer-header-measures-expand js-header-tab-issues">
<div class="component-viewer-header-measure">
- <span class="component-viewer-header-measure-value">{{default component.measures.fDebt '–'}}</span>
+ <span class="component-viewer-header-measure-value">{{default component.measures.fDebt '0'}}</span>
<span class="component-viewer-header-measure-label">{{t 'component_viewer.header.debt'}}</span>
</div>
{{#if component.measures.fIssues}}
{{/unless}}
</div>
-<div class="component-viewer-header-expanded-bar"></div>
\ No newline at end of file
+<div class="component-viewer-header-expanded-bar"></div>
</div>
{{/if}}
+<div class="component-viewer-header-expanded-bar-section">
+ <div class="component-viewer-header-expanded-bar-section-title">
+ {{#if hasIssues}}{{t 'component_viewer.measure_section.resolutions'}}{{else}}{{t 'component_viewer.no_issues'}}{{/if}}
+ </div>
+ <ul class="component-viewer-header-expanded-bar-section-list">
+ {{#if currentIssue}}
+ <li><a class="item js-filter-current-issue">
+ <span>{{t 'component_viewer.issues.current_issue'}}</span>
+ <i class="icon-chevron-right"></i>
+ </a></li>
+ {{/if}}
+ {{#unless state.removed}}
+ <li><a class="item js-filter-unresolved-issues">
+ <span>{{t 'component_viewer.issues.unresolved_issues'}}</span>
+ <i class="icon-chevron-right"></i>
+ </a></li>
+ {{/unless}}
+ {{#unless state.removed}}
+ <li><a class="item js-filter-fixed-issues">
+ <span>{{t 'component_viewer.issues.fixed_issues'}}</span>
+ <i class="icon-chevron-right"></i>
+ </a></li>
+ {{/unless}}
+ {{#unless state.removed}}
+ <li><a class="item js-filter-false-positive-issues">
+ <span>{{t 'component_viewer.issues.false_positive_issues'}}</span>
+ <span class="number">{{component.measures.false_positive_issues}}</span>
+ <i class="icon-chevron-right"></i>
+ </a></li>
+ {{else}}
+ {{#if component.measures.false_positive_issues}}
+ <li><span class="item">
+ <span>{{t 'component_viewer.issues.false_positive_issues'}}</span>
+ <span class="number">{{component.measures.false_positive_issues}}</span>
+ </span></li>
+ {{/if}}
+ {{/unless}}
+ </ul>
+</div>
+
{{#ifNotEmpty state.severities}}
<div class="component-viewer-header-expanded-bar-section">
<div class="component-viewer-header-expanded-bar-section-title">
</div>
{{/ifNotEmpty}}
-<div class="component-viewer-header-expanded-bar-section">
- <div class="component-viewer-header-expanded-bar-section-title">
- {{#if hasIssues}} {{else}}{{t 'component_viewer.no_issues'}}{{/if}}
- </div>
- <ul class="component-viewer-header-expanded-bar-section-list">
- {{#if currentIssue}}
- <li><a class="item js-filter-current-issue">
- <span>{{t 'component_viewer.issues.current_issue'}}</span>
- <i class="icon-chevron-right"></i>
- </a></li>
- {{/if}}
- {{#unless state.removed}}
- <li><a class="item js-filter-unresolved-issues">
- <span>{{t 'component_viewer.issues.unresolved_issues'}}</span>
- <i class="icon-chevron-right"></i>
- </a></li>
- {{/unless}}
- {{#unless state.removed}}
- <li><a class="item js-filter-fixed-issues">
- <span>{{t 'component_viewer.issues.fixed_issues'}}</span>
- <i class="icon-chevron-right"></i>
- </a></li>
- {{/unless}}
- {{#unless state.removed}}
- <li><a class="item js-filter-false-positive-issues">
- <span>{{t 'component_viewer.issues.false_positive_issues'}}</span>
- <span class="number">{{component.measures.false_positive_issues}}</span>
- <i class="icon-chevron-right"></i>
- </a></li>
- {{else}}
- {{#if component.measures.false_positive_issues}}
- <li><span class="item">
- <span>{{t 'component_viewer.issues.false_positive_issues'}}</span>
- <span class="number">{{component.measures.false_positive_issues}}</span>
- </span></li>
- {{/if}}
- {{/unless}}
- </ul>
-</div>
-
{{#if hasIssues}}
<div class="component-viewer-header-expanded-bar-section component-viewer-header-expanded-bar-section-actions">
<div class="component-viewer-header-expanded-bar-section-title"> </div>