aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/hbs/component-viewer/cw-duplication-popup.hbs
blob: 8161966f29b7b8a9b6680a9056391d241664a996 (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
<div class="bubble-popup-container">
  <div class="bubble-popup-title">{{t 'component_viewer.transition.duplication'}}</div>
  {{#each duplications}}
    <div class="bubble-popup-section">
      {{#notEq file.projectName ../component.projectName}}
        <span class="component-viewer-popup-label">{{file.projectName}}</span>
      {{/notEq}}
      <a class="link-action" data-key="{{file.key}}" title="{{file.name}}">
        {{file.name}}
      </a>

      <div class="component-viewer-popup-duplications">
        Lines:
        {{#joinEach blocks ','}}
          <a class="link-action" data-key="{{../file.key}}" data-line="{{from}}">
            {{from}}{{sum from size}}
          </a>
        {{/joinEach}}
      </div>
    </div>
  {{else}}
    {{t 'duplications.block_was_duplicated_by_a_deleted_resource'}}
  {{/each}}
</div>

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