From: Stas Vilchik Date: Sun, 2 Mar 2014 17:08:55 +0000 (+0100) Subject: SONAR-4366 Create initial layout on fly X-Git-Tag: 4.3~627 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bede6a079dea27853b924248901ee461c5a5b168;p=sonarqube.git SONAR-4366 Create initial layout on fly Add missed file --- diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/layout.js b/sonar-server/src/main/webapp/javascripts/quality-gate/layout.js new file mode 100644 index 00000000000..e99e6b0dd26 --- /dev/null +++ b/sonar-server/src/main/webapp/javascripts/quality-gate/layout.js @@ -0,0 +1,32 @@ +// Generated by CoffeeScript 1.6.3 +(function() { + var __hasProp = {}.hasOwnProperty, + __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; + + define(['backbone.marionette', 'common/handlebars-extensions'], function(Marionette) { + var AppLayout, _ref; + return AppLayout = (function(_super) { + __extends(AppLayout, _super); + + function AppLayout() { + _ref = AppLayout.__super__.constructor.apply(this, arguments); + return _ref; + } + + AppLayout.prototype.className = 'navigator quality-gates-navigator'; + + AppLayout.prototype.template = getTemplate('#quality-gates-layout'); + + AppLayout.prototype.regions = { + headerRegion: '.navigator-header', + actionsRegion: '.navigator-actions', + listRegion: '.navigator-results', + detailsRegion: '.navigator-details' + }; + + return AppLayout; + + })(Marionette.Layout); + }); + +}).call(this);