diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-09 11:03:44 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-10 14:43:19 +0200 |
commit | f20953ac6c24877fb80f151369227dfad5890324 (patch) | |
tree | f99cf3b7f14bc80d08b2b620217d3c2d84aeac98 /server/sonar-web/src/main | |
parent | a09cf3a6f7746be2c4114024688f1fb8221f4732 (diff) | |
download | sonarqube-f20953ac6c24877fb80f151369227dfad5890324.tar.gz sonarqube-f20953ac6c24877fb80f151369227dfad5890324.zip |
SONAR-5851 add app skeleton
Diffstat (limited to 'server/sonar-web/src/main')
4 files changed, 47 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/hbs/nav/nav-global-navbar.hbs b/server/sonar-web/src/main/hbs/nav/nav-global-navbar.hbs index 6a630910b68..d3821e0922d 100644 --- a/server/sonar-web/src/main/hbs/nav/nav-global-navbar.hbs +++ b/server/sonar-web/src/main/hbs/nav/nav-global-navbar.hbs @@ -41,6 +41,9 @@ <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> diff --git a/server/sonar-web/src/main/js/quality-profiles/app.js b/server/sonar-web/src/main/js/quality-profiles/app.js new file mode 100644 index 00000000000..5fb1b6cc539 --- /dev/null +++ b/server/sonar-web/src/main/js/quality-profiles/app.js @@ -0,0 +1,10 @@ +require([], function () { + + var $ = jQuery, + App = new Marionette.Application(); + + window.requestMessages().done(function () { + App.start(); + }); + +}); diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/quality_profiles_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/quality_profiles_controller.rb new file mode 100644 index 00000000000..5884d08ab16 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/quality_profiles_controller.rb @@ -0,0 +1,29 @@ +# +# 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 diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/quality_profiles/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/quality_profiles/index.html.erb new file mode 100644 index 00000000000..3084e764ef1 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/quality_profiles/index.html.erb @@ -0,0 +1,5 @@ +<% content_for :script do %> + <script>require(['quality-profiles/app']);</script> +<% end %> + +<div class="search-navigator" id="quality-profiles"></div> |