blob: c463283044005d7769aca7c5406a66cb990164eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{{#ifNotEmpty state.severities}}
<div class="component-viewer-header-expanded-bar-section">
<div class="component-viewer-header-expanded-bar-section-title">
{{t 'component_viewer.measure_section.severities'}}
</div>
<ul class="component-viewer-header-expanded-bar-section-list">
{{#each state.severities}}
<li><a class="item js-filter-{{key}}-issues">
<span>{{severityIcon key}} {{name}}</span>
<span class="number">{{count}}</span>
<i class="icon-chevron-right"></i>
</a></li>
{{/each}}
</ul>
</div>
{{/ifNotEmpty}}
{{#ifNotEmpty state.rules}}
<div class="component-viewer-header-expanded-bar-section">
<div class="component-viewer-header-expanded-bar-section-title">
{{t 'component_viewer.measure_section.rules'}}
</div>
<ul class="component-viewer-header-expanded-bar-section-list">
{{#each state.rules}}
<li><a class="item js-filter-rule" data-rule="{{key}}" title="{{name}}">
<span>{{name}}</span>
<span class="number">{{count}}</span>
<i class="icon-chevron-right"></i>
</a></li>
{{/each}}
</ul>
</div>
{{/ifNotEmpty}}
<div class="component-viewer-header-expanded-bar-section">
<div class="component-viewer-header-expanded-bar-section-title">
{{t 'component_viewer.measure_section.issues'}}
</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}}
<li><a class="item js-filter-unresolved-issues">
<span>{{t 'component_viewer.issues.unresolved_issues'}}</span>
<i class="icon-chevron-right"></i>
</a></li>
<li><a class="item js-filter-fixed-issues">
<span>{{t 'component_viewer.issues.fixed_issues'}}</span>
<i class="icon-chevron-right"></i>
</a></li>
<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>
</ul>
</div>
<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>
<ul class="component-viewer-header-expanded-bar-section-list">
<li><a class="link-action js-issues-time-changes">
<span><i class="icon-period"></i>
{{#if period}}Added {{period.label}}{{else}}Time Changes{{/if}}</span>
</a></li>
{{#if state.canBulkChange}}
<li><a class="link-action js-issues-bulk-change">
<span><i class="icon-bulk-change"></i> {{t 'bulk_change'}}</span>
</a></li>
{{/if}}
</ul>
</div>
|