]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4366 Create initial layout on fly
authorStas Vilchik <vilchiks@gmail.com>
Sun, 2 Mar 2014 17:08:55 +0000 (18:08 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Sun, 2 Mar 2014 17:08:55 +0000 (18:08 +0100)
Add missed file

sonar-server/src/main/webapp/javascripts/quality-gate/layout.js [new file with mode: 0644]

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 (file)
index 0000000..e99e6b0
--- /dev/null
@@ -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);