From: Stas Vilchik Date: Thu, 8 Jan 2015 08:40:32 +0000 (+0100) Subject: SONAR-5884 Apply feedback X-Git-Tag: latest-silver-master-#65~295 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4afaa4d008508cb991793e20440da04667af01b;p=sonarqube.git SONAR-5884 Apply feedback --- diff --git a/server/sonar-web/src/main/hbs/source-viewer/source-viewer-measures.hbs b/server/sonar-web/src/main/hbs/source-viewer/source-viewer-measures.hbs index ea827ed2ac6..166e9c6beea 100644 --- a/server/sonar-web/src/main/hbs/source-viewer/source-viewer-measures.hbs +++ b/server/sonar-web/src/main/hbs/source-viewer/source-viewer-measures.hbs @@ -49,7 +49,9 @@ {{/unless}} -
+{{t 'component_viewer.show_all_measures'}} + + diff --git a/server/sonar-web/src/main/js/source-viewer/measures-overlay.js b/server/sonar-web/src/main/js/source-viewer/measures-overlay.js index 7848e0b34c6..d2a19f6baee 100644 --- a/server/sonar-web/src/main/js/source-viewer/measures-overlay.js +++ b/server/sonar-web/src/main/js/source-viewer/measures-overlay.js @@ -16,7 +16,8 @@ define([ 'click .js-sort-tests-by-duration': 'sortTestsByDuration', 'click .js-sort-tests-by-name': 'sortTestsByName', 'click .js-sort-tests-by-status': 'sortTestsByStatus', - 'click .js-show-test': 'showTest' + 'click .js-show-test': 'showTest', + 'click .js-show-all-measures': 'showAllMeasures' }); }, @@ -224,6 +225,11 @@ define([ }); }, + showAllMeasures: function () { + this.$('.js-all-measures').removeClass('hidden'); + this.$('.js-show-all-measures').remove(); + }, + serializeData: function () { return _.extend(Overlay.prototype.serializeData.apply(this, arguments), { testSorting: this.testSorting, 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 23eef2e3bd0..b5473ab1008 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2806,6 +2806,7 @@ component_viewer.issues_limit_reached=For usability reasons, only the {0} first component_viewer.issues_limit_reached_tooltip={0}\n\nRefine your filter to be able to see the details of this issue. component_viewer.cannot_show=We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists. component_viewer.show_details=Show Details +component_viewer.show_all_measures=Show all measures component_viewer.workspace=Workspace component_viewer.workspace.tooltip=Keeps track of history of navigation