From: Stas Vilchik Date: Fri, 21 Mar 2014 09:41:39 +0000 (+0600) Subject: SONAR-5007 Add languages next to quality profiles X-Git-Tag: 4.3~329 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5979c6f6ae5a2de2c067c5289b46f98cdf8abfa5;p=sonarqube.git SONAR-5007 Add languages next to quality profiles --- 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 @@ @@ -30,7 +30,7 @@