]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5884 Apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Thu, 8 Jan 2015 08:40:32 +0000 (09:40 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 8 Jan 2015 13:15:12 +0000 (14:15 +0100)
server/sonar-web/src/main/hbs/source-viewer/source-viewer-measures.hbs
server/sonar-web/src/main/js/source-viewer/measures-overlay.js
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index ea827ed2ac6b05fd9f5dd4e4acc1a1217a74ed24..166e9c6beea8c85d0a1a0edcf2b8336e795f0f7f 100644 (file)
@@ -49,7 +49,9 @@
   {{/unless}}
 </div>
 
-<div class="source-viewer-measures source-viewer-measures-secondary">
+<a class="js-show-all-measures">{{t 'component_viewer.show_all_measures'}}</a>
+
+<div class="source-viewer-measures source-viewer-measures-secondary js-all-measures hidden">
   {{> '_source-viewer-measures-all'}}
 </div>
 
index 7848e0b34c60e87c62df61c5e291f1a04b485d91..d2a19f6baee89b0688243906ced7e072bb1c8c11 100644 (file)
@@ -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,
index 23eef2e3bd0bbbfbd10b4d40a27f72af99ef092d..b5473ab1008f206f0713983e97aa4229191ef026 100644 (file)
@@ -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