component_viewer.new_window=Open in New Window
component_viewer.get_permalink=Get Permalink
component_viewer.covered_lines=Covered Lines
+component_viewer.issues_limit_reached=Only the first {0} issues are displayed
component_viewer.workspace=Workspace
component_viewer.workspace.tooltip=Keeps track of history of navigation
$ = jQuery
API_COVERAGE_TESTS = "#{baseUrl}/api/tests/test_cases"
- ISSUES_LIMIT = 50
+ ISSUES_LIMIT = 100
class SourceView extends Marionette.ItemView
component: @options.main.component.toJSON()
columns: @getStatColumnsCount() + 1
showZeroLine: @showZeroLine()
+ issuesLimit: ISSUES_LIMIT
+ issuesLimitReached: @model.get('activeIssues')?.length > ISSUES_LIMIT
<p class="marginbottom10">{{t 'duplications.dups_found_on_deleted_resource'}}</p>
{{/if}}
+ {{#if issuesLimitReached}}
+ <p class="marginbottom10">{{tp 'component_viewer.issues_limit_reached' issuesLimit}}</p>
+ {{/if}}
+
<table class="code">
{{#if showZeroLine}}
<tr class="row row-hidden" data-line-number="0" id="{{uid}}-0">