skipRemovedFiles: ->
duplications = @source.get 'duplications'
files = @source.get 'duplicationFiles'
+ deletedFiles = false
duplications = _.map duplications, (d) ->
blocks = _.filter d.blocks, (b) -> files[b._ref]
+ deletedFiles = true if blocks.length != d.blocks.length
blocks: blocks
@source.set 'duplications', duplications
+ @source.set 'duplicationsInDeletedFiles', deletedFiles
augmentWithDuplications: (duplications) ->
lineFrom = b.from
lineTo = b.from + b.size
@sourceView.addShowBlock lineFrom - LINES_AROUND_DUPLICATION, lineTo + LINES_AROUND_DUPLICATION
- @sourceView.render()
\ No newline at end of file
+ @sourceView.render()
{{else}}
+ {{#if source.duplicationsInDeletedFiles}}
+ <p>{{t 'duplications.dups_found_on_deleted_resource'}}</p>
+ {{/if}}
+
<table class="code">
{{#if showZeroLine}}
<tr class="row row-hidden" data-line-number="0">
{{/each}}
</table>
-{{/if}}
\ No newline at end of file
+{{/if}}