diff options
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js b/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js index 26748b8e3be..a914b3ac6be 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js +++ b/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js @@ -170,8 +170,10 @@ export default Marionette.LayoutView.extend({ serializeData () { const key = this.model.get('key'); const rulesSearchUrl = `/coding_rules#qprofile=${encodeURIComponent(key)}|activation=true`; + const activateRulesUrl = `/coding_rules#qprofile=${encodeURIComponent(key)}|activation=false`; return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), { rulesSearchUrl, + activateRulesUrl, canWrite: this.options.canWrite, exporters: this.getExporters() }); diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs index f6f6a50f1cf..4ec68258a75 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs +++ b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs @@ -3,6 +3,9 @@ <div class="column-two-thirds" id="quality-profile-rules"> <header class="page-header"> <h3 class="page-title">{{t 'coding_rules'}}</h3> + <div class="button-group big-spacer-left"> + <a class="button" href="{{link activateRulesUrl}}">{{t 'coding_rules.activate'}}</a> + </div> </header> <div> |