diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-03-27 10:33:11 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-03-27 10:43:05 +0100 |
commit | 3fff0e8918b8de03e413b357ed46e4adaa71d2ca (patch) | |
tree | bac5ac8f53f729ce7e36b2d89032bf205e6fa2c3 /server/sonar-web/src/main/hbs | |
parent | 7bad03950e4ec3e82a5fef2ef50867a2e4ac29e2 (diff) | |
download | sonarqube-3fff0e8918b8de03e413b357ed46e4adaa71d2ca.tar.gz sonarqube-3fff0e8918b8de03e413b357ed46e4adaa71d2ca.zip |
show warning when find a duplication in a removed component
Diffstat (limited to 'server/sonar-web/src/main/hbs')
-rw-r--r-- | server/sonar-web/src/main/hbs/source-viewer/source-viewer-duplication-popup.hbs | 65 |
1 files changed, 34 insertions, 31 deletions
diff --git a/server/sonar-web/src/main/hbs/source-viewer/source-viewer-duplication-popup.hbs b/server/sonar-web/src/main/hbs/source-viewer/source-viewer-duplication-popup.hbs index d3553ed3e58..4a596a1959d 100644 --- a/server/sonar-web/src/main/hbs/source-viewer/source-viewer-duplication-popup.hbs +++ b/server/sonar-web/src/main/hbs/source-viewer/source-viewer-duplication-popup.hbs @@ -1,42 +1,45 @@ <div class="bubble-popup-container"> - <div class="bubble-popup-title">{{t 'component_viewer.transition.duplication'}}</div> - {{#each duplications}} - <div class="bubble-popup-section"> - <div class="component-name"> - {{#notEqComponents file ../component}} - <div class="component-name-parent"> - <i class="icon-qualifier-trk"></i> <a href="{{dashboardUrl file.project}}">{{file.projectName}}</a> - </div> - {{#if file.subProjectName}} + {{#if inRemovedComponent}} + <div class="alert alert-warning spacer-bottom">{{t 'duplications.dups_found_on_deleted_resource'}}</div> + {{/if}} + {{#notEmpty duplications}} + <div class="bubble-popup-title">{{t 'component_viewer.transition.duplication'}}</div> + {{#each duplications}} + <div class="bubble-popup-section"> + <div class="component-name"> + {{#notEqComponents file ../component}} <div class="component-name-parent"> - <i class="icon-qualifier-trk"></i> <a - href="{{dashboardUrl file.subProject}}">{{file.subProjectName}}</a> + <i class="icon-qualifier-trk"></i> <a href="{{dashboardUrl file.project}}">{{file.projectName}}</a> + </div> + {{#if file.subProjectName}} + <div class="component-name-parent"> + <i class="icon-qualifier-trk"></i> <a + href="{{dashboardUrl file.subProject}}">{{file.subProjectName}}</a> + </div> + {{/if}} + {{/notEqComponents}} + + {{#notEq file.key ../component.key}} + <div class="component-name-path"> + <a data-uuid="{{file.uuid}}" title="{{file.name}}"> + <span>{{collapsedDirFromPath file.name}}</span><span + class="component-name-file">{{fileFromPath file.name}}</span> + </a> </div> - {{/if}} - {{/notEqComponents}} + {{/notEq}} - {{#notEq file.key ../component.key}} <div class="component-name-path"> - <a data-uuid="{{file.uuid}}" title="{{file.name}}"> - <span>{{collapsedDirFromPath file.name}}</span><span - class="component-name-file">{{fileFromPath file.name}}</span> - </a> + Lines: + {{#joinEach blocks ','}} + <a class="link-action" data-uuid="{{../file.uuid}}" data-line="{{from}}"> + {{from}} – {{sum from size -1}} + </a> + {{/joinEach}} </div> - {{/notEq}} - - <div class="component-name-path"> - Lines: - {{#joinEach blocks ','}} - <a class="link-action" data-uuid="{{../file.uuid}}" data-line="{{from}}"> - {{from}} – {{sum from size -1}} - </a> - {{/joinEach}} </div> </div> - </div> - {{else}} - {{t 'duplications.block_was_duplicated_by_a_deleted_resource'}} - {{/each}} + {{/each}} + {{/notEmpty}} </div> <div class="bubble-popup-arrow"></div> |