diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-03-21 15:41:39 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-03-21 15:41:39 +0600 |
commit | 5979c6f6ae5a2de2c067c5289b46f98cdf8abfa5 (patch) | |
tree | 639ff95e1e824a2687a05a89aea99cdefe619c76 /sonar-server | |
parent | e768b554633b645eaac9301f4ad258e16a15b38d (diff) | |
download | sonarqube-5979c6f6ae5a2de2c067c5289b46f98cdf8abfa5.tar.gz sonarqube-5979c6f6ae5a2de2c067c5289b46f98cdf8abfa5.zip |
SONAR-5007 Add languages next to quality profiles
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee | 18 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/templates/coding-rules/coding-rules-bulk-change.hbs | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee b/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee index c36b02d58ba..5eda25095c4 100644 --- a/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee +++ b/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee @@ -8,10 +8,10 @@ define ['jquery.mockjax'], -> url: "#{baseUrl}/api/codingrules/app" responseText: JSON.stringify qualityprofiles: [ - { key: 'sonarway', name: 'Sonar Way', parent: null }, - { key: 'qualityprofile1', name: 'Quality Profile 1', parent: 'sonarway' }, - { key: 'qualityprofile2', name: 'Quality Profile 2', parent: 'sonarway' }, - { key: 'qualityprofile3', name: 'Quality Profile 3', parent: null }, + { key: 'sonarway', name: 'Sonar Way', lang: 'Java', parent: null }, + { key: 'qualityprofile1', name: 'Quality Profile 1', lang: 'Java', parent: 'sonarway' }, + { key: 'qualityprofile2', name: 'Quality Profile 2', lang: 'JavaScript', parent: 'sonarway' }, + { key: 'qualityprofile3', name: 'Quality Profile 3', lang: 'Java', parent: null }, ] languages: java: 'Java' @@ -275,10 +275,10 @@ define ['jquery.mockjax'], -> responseText: JSON.stringify more: false results: [ - { id: 'sonarway', text: 'Sonar Way', parent: null }, - { id: 'qp1', text: 'Quality Profile 1', parent: 'sonarway' }, - { id: 'qp2', text: 'Quality Profile 2', parent: 'sonarway' }, - { id: 'qp3', text: 'Quality Profile 3', parent: null }, + { id: 'sonarway', text: 'Sonar Way', category: 'Java', parent: null }, + { id: 'qp1', text: 'Quality Profile 1', category: 'Java', parent: 'sonarway' }, + { id: 'qp2', text: 'Quality Profile 2', category: 'JavaScript', parent: 'sonarway' }, + { id: 'qp3', text: 'Quality Profile 3', category: 'Java', parent: null }, ] @@ -287,5 +287,5 @@ define ['jquery.mockjax'], -> url: "#{baseUrl}/api/qualityprofiles/show" responseText: JSON.stringify qualityprofile: - id: 'sonarway', text: 'Sonar Way', parent: null + id: 'sonarway', text: 'Sonar Way', category: 'Java', parent: null diff --git a/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-bulk-change.hbs b/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-bulk-change.hbs index c8ecaab1821..7d7229132d5 100644 --- a/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-bulk-change.hbs +++ b/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-bulk-change.hbs @@ -19,7 +19,7 @@ <label for="coding-rules-bulk-change-activate-on">{{t 'coding_rules.activate_in'}}</label> <select id="coding-rules-bulk-change-activate-on" multiple> {{#each activateOnQualityProfiles}} - <option value="{{key}}">{{name}}</option> + <option value="{{key}}">{{name}} ({{lang}})</option> {{/each}} </select> </div> @@ -30,7 +30,7 @@ <label for="coding-rules-bulk-change-deactivate-on">{{t 'coding_rules.deactivate_in'}}</label> <select id="coding-rules-bulk-change-deactivate-on" multiple> {{#each deactivateOnQualityProfiles}} - <option value="{{key}}">{{name}}</option> + <option value="{{key}}">{{name}} ({{lang}})</option> {{/each}} </select> </div> |