From: Stas Vilchik Date: Tue, 1 Jul 2014 06:36:54 +0000 (+0600) Subject: SONAR-5209 Set issues limit to 100. Add issues limit reached message. X-Git-Tag: 4.4-RC1~78 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=268db59310338481619700b25d12e608097c3239;p=sonarqube.git SONAR-5209 Set issues limit to 100. Add issues limit reached message. --- diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index e8bbcf55a70..2d746c37992 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2670,6 +2670,7 @@ component_viewer.more_actions=More Actions 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 diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index 12392598ee8..d1e255f01a8 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -22,7 +22,7 @@ define [ $ = jQuery API_COVERAGE_TESTS = "#{baseUrl}/api/tests/test_cases" - ISSUES_LIMIT = 50 + ISSUES_LIMIT = 100 class SourceView extends Marionette.ItemView @@ -288,3 +288,5 @@ define [ component: @options.main.component.toJSON() columns: @getStatColumnsCount() + 1 showZeroLine: @showZeroLine() + issuesLimit: ISSUES_LIMIT + issuesLimitReached: @model.get('activeIssues')?.length > ISSUES_LIMIT diff --git a/sonar-server/src/main/hbs/component-viewer/source.hbs b/sonar-server/src/main/hbs/component-viewer/source.hbs index 980570b8f36..707abcb8b88 100644 --- a/sonar-server/src/main/hbs/component-viewer/source.hbs +++ b/sonar-server/src/main/hbs/component-viewer/source.hbs @@ -8,6 +8,10 @@

{{t 'duplications.dups_found_on_deleted_resource'}}

{{/if}} + {{#if issuesLimitReached}} +

{{tp 'component_viewer.issues_limit_reached' issuesLimit}}

+ {{/if}} + {{#if showZeroLine}}