diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-17 11:11:10 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-17 11:32:34 +0200 |
commit | 1b7523901443f1f461efbed6547b77275e8ac0b2 (patch) | |
tree | f4291d019fcf28c37b35788b0f4b87f7f48cb9cf /server/sonar-web | |
parent | b07a2570e213f7919b69b4a2d43ed327f7f3d938 (diff) | |
download | sonarqube-1b7523901443f1f461efbed6547b77275e8ac0b2.tar.gz sonarqube-1b7523901443f1f461efbed6547b77275e8ac0b2.zip |
SONAR-5851 show activation severity in the profile details
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-profile-details.hbs | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/quality-profiles/profile.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-profile-details.hbs b/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-profile-details.hbs index 8d6d7c0d332..31b21d1c8bb 100644 --- a/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-profile-details.hbs +++ b/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-profile-details.hbs @@ -13,7 +13,7 @@ {{#eachEven rulesSeverities}} <p class="spacer-top"> {{severityIcon val}} - <a href="{{link ../rulesSearchUrl '|severities=' val}}">{{formatMeasure count 'INT'}}</a> + <a href="{{link ../rulesSearchUrl '|active_severities=' val}}">{{formatMeasure count 'INT'}}</a> <span class="text-lowercase">{{t 'severity' val}}</span> </p> {{/eachEven}} @@ -22,7 +22,7 @@ {{#eachOdd rulesSeverities}} <p class="spacer-top"> {{severityIcon val}} - <a href="{{link ../rulesSearchUrl '|severities=' val}}">{{formatMeasure count 'INT'}}</a> + <a href="{{link ../rulesSearchUrl '|active_severities=' val}}">{{formatMeasure count 'INT'}}</a> <span class="text-lowercase">{{t 'severity' val}}</span> </p> {{/eachOdd}} diff --git a/server/sonar-web/src/main/js/quality-profiles/profile.js b/server/sonar-web/src/main/js/quality-profiles/profile.js index 4bf6a980697..3f061e4a9a9 100644 --- a/server/sonar-web/src/main/js/quality-profiles/profile.js +++ b/server/sonar-web/src/main/js/quality-profiles/profile.js @@ -45,12 +45,12 @@ define(function () { key = this.id, options = { ps: 1, - facets: 'severities,tags', + facets: 'active_severities', qprofile: key, activation: 'true' }; return $.get(url, options).done(function (r) { - var severityFacet = _.findWhere(r.facets, { property: 'severities' }); + var severityFacet = _.findWhere(r.facets, { property: 'active_severities' }); if (severityFacet != null) { var severities = severityFacet.values, severityComparator = function (s) { |