aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/source-viewer/templates/source-viewer-coverage-popup.hbs
blob: 9906d547398cc32acded5aadc5c34448701d1a81 (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
<div class="bubble-popup-container">
  <div class="bubble-popup-title">
    {{#if row.lineHits}}
      {{t 'source_viewer' tests 'covered'}}
      {{#if row.conditions}}
        ({{default row.coveredConditions 0}} of {{row.conditions}} {{t 'source_viewer.conditions'}})
      {{/if}}
    {{else}}
      {{t 'source_viewer' tests 'not_covered'}}
      {{#if row.conditions}}
        ({{row.conditions}} {{t 'source_viewer.conditions'}})
      {{/if}}
    {{/if}}
  </div>

  {{#each testFiles}}
    <div class="bubble-popup-section">
      <a class="component-viewer-popup-test-file link-action" data-id="{{file.id}}" title="{{file.longName}}">
        <span>{{collapsePath file.longName}}</span>
      </a>
      <ul class="bubble-popup-list">
        {{#each tests}}
          <li class="component-viewer-popup-test" title="{{name}}">
            <i class="component-viewer-popup-test-status {{testStatusIconClass status}}"></i>
            <span class="component-viewer-popup-test-name">
              <a class="component-viewer-popup-test-file link-action" title="{{name}}"
                 data-id="{{../file.id}}" data-method="{{name}}">
                {{name}}
              </a>
            </span>
            <span class="component-viewer-popup-test-duration">{{durationInMs}}ms</span>
          </li>
        {{/each}}
      </ul>
    </div>
  {{/each}}
</div>

<div class="bubble-popup-arrow"></div>