]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Duplications inside deleted resources
authorStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 06:17:33 +0000 (12:17 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 06:17:54 +0000 (12:17 +0600)
sonar-core/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/hbs/component-viewer/duplicationPopup.hbs
sonar-server/src/main/hbs/component-viewer/source.hbs

index 302023e7cec9b893b83f595abd0a9e1a8d86ca07..0e99bdfbadc7d1f48205478c9bb77586ef934bc9 100644 (file)
@@ -1343,6 +1343,7 @@ issues_viewer.issue_filter.unplanned=Unplanned
 
 duplications.no_duplicated_block=No duplicated blocks.
 duplications.dups_found_on_deleted_resource=This file contains duplicated blocks with some deleted resources. This project should be reanalyzed to remove these obsolete duplicated blocks.
+duplications.block_was_duplicated_by_a_deleted_resource=This block was duplicated by a resource that has been deleted.
 duplications.old_format_should_reanalyze=This file contains duplications but a new analysis must be done in order to be able to display them.
 duplications.blocks=Blocks
 duplications.number_of_lines=Nb Lines
index fcc21de99c5300667fa6851aee4ca5bbae6e2a2f..5ca853ca564188a4a87b1cecfcaa2c784615a907 100644 (file)
@@ -20,6 +20,8 @@
         {{/joinEach}}
       </div>
     </div>
+  {{else}}
+    {{t 'duplications.block_was_duplicated_by_a_deleted_resource'}}
   {{/each}}
 </div>
 
index 7105d7739cb24f7a99dacc8d4f02a95460f65a67..1e7a2b407669446503f5ccffc9576869d33f0b48 100644 (file)
@@ -1,11 +1,11 @@
 {{#if state.sourceSecurity}}
 
-<p>{{t 'code_viewer.no_source_code_displayed_due_to_security'}}</p>
+  <p>{{t 'code_viewer.no_source_code_displayed_due_to_security'}}</p>
 
 {{else}}
 
   {{#if state.duplicationsInDeletedFiles}}
-      <p>{{t 'duplications.dups_found_on_deleted_resource'}}</p>
+    <p class="marginbottom10">{{t 'duplications.dups_found_on_deleted_resource'}}</p>
   {{/if}}
 
   <table class="code">