aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/hbs/source-viewer/source-viewer-measures.hbs
blob: 0a2288ceca25c8163c34e026c9f87decd29da312 (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
<div class="modal-container source-viewer-measures-modal">
  <div class="source-viewer-header-component source-viewer-measures-component">
    {{#unless removed}}
      {{#if projectName}}
        <div class="source-viewer-header-component-project">
          {{qualifierIcon 'TRK'}}&nbsp;<a href="{{dashboardUrl project}}">{{projectName}}</a>
          {{#if subProjectName}}
            &nbsp;&nbsp;&nbsp;
            {{qualifierIcon 'TRK'}}&nbsp;<a href="{{dashboardUrl subProject}}">{{subProjectName}}</a>
          {{/if}}
        </div>
      {{/if}}

      <div class="source-viewer-header-component-name">
        {{qualifierIcon q}} {{default path longName}}
      </div>
    {{else}}
      <div class="source-viewer-header-component-project removed">{{removedMessage}}</div>
    {{/unless}}
  </div>

  {{#unless isUnitTest}}
    <div class="source-viewer-measures">
      <div class="source-viewer-measures-section">
        <div class="source-viewer-measures-card">
          {{> '_source-viewer-measures-lines'}}
        </div>
      </div>

      <div class="source-viewer-measures-section">
        {{> '_source-viewer-measures-issues'}}
      </div>

      {{#any measures.coverage measures.it_coverage}}
        <div class="source-viewer-measures-section">
          <div class="source-viewer-measures-card">
            {{> '_source-viewer-measures-coverage'}}
          </div>
        </div>
      {{/any}}

      <div class="source-viewer-measures-section">
        {{> '_source-viewer-measures-duplications'}}
      </div>
    </div>
  {{else}}
    <div class="source-viewer-measures">
      <div class="source-viewer-measures-section">
        {{> '_source-viewer-measures-tests'}}
      </div>
    </div>
    <div class="source-viewer-measures">
      {{> '_source-viewer-measures-test-cases'}}
    </div>
  {{/unless}}


  <div class="marginbottom10">&nbsp;</div>
  <a class="js-show-all-measures">{{t 'component_viewer.show_all_measures'}}</a>

  <div class="source-viewer-measures source-viewer-measures-secondary js-all-measures hidden">
    {{> '_source-viewer-measures-all'}}
  </div>
</div>

<div class="modal-foot">
  <a class="js-modal-close" href="#">{{t 'close'}}</a>
</div>