name: 'quality-gate/app'
out: '<%= grunt.option("assetsDir") || pkg.assets %>build/js/quality-gate/app.js'
+ qualityProfiles: options:
+ name: 'quality-profiles/app'
+ out: '<%= grunt.option("assetsDir") || pkg.assets %>build/js/quality-profiles/app.js'
+
codingRules: options:
name: 'coding-rules/app'
out: '<%= grunt.option("assetsDir") || pkg.assets %>build/js/coding-rules/app.js'
'<%= grunt.option("assetsDir") || pkg.assets %>js/templates/quality-gates.js': [
'<%= pkg.sources %>hbs/quality-gates/**/*.hbs'
]
+ '<%= grunt.option("assetsDir") || pkg.assets %>js/templates/quality-profiles.js': [
+ '<%= pkg.sources %>hbs/quality-profiles/**/*.hbs'
+ ]
'<%= grunt.option("assetsDir") || pkg.assets %>js/templates/source-viewer.js': [
'<%= pkg.sources %>hbs/source-viewer/**/*.hbs'
]
<li {{#isActiveLink '/profiles'}}class="active"{{/isActiveLink}}>
<a href="{{link '/profiles'}}">{{t 'quality_profiles.page'}}</a>
</li>
+ <li {{#isActiveLink '/quality_profiles'}}class="active"{{/isActiveLink}}>
+ <a href="{{link '/quality_profiles'}}">NEW {{t 'quality_profiles.page'}}</a>
+ </li>
<li {{#isActiveLink '/quality_gates'}}class="active"{{/isActiveLink}}>
<a href="{{link '/quality_gates'}}">{{t 'quality_gates.page'}}</a>
</li>
--- /dev/null
+require([], function () {
+
+ var $ = jQuery,
+ App = new Marionette.Application();
+
+ window.requestMessages().done(function () {
+ App.start();
+ });
+
+});
--- /dev/null
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+class QualityProfilesController < ApplicationController
+
+ SECTION=Navigation::SECTION_QUALITY_PROFILES
+
+ def index
+
+ end
+
+end
--- /dev/null
+<% content_for :script do %>
+ <script>require(['quality-profiles/app']);</script>
+<% end %>
+
+<div class="search-navigator" id="quality-profiles"></div>