ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pallav...@apache.org
Subject ambari git commit: AMBARI-19315. Change IFrame container layout for the Ambari Views from fixed to fluid (pallavkul)
Date Tue, 03 Jan 2017 12:20:59 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 2bd7f2821 -> 69ae95a82


AMBARI-19315. Change IFrame container layout for the Ambari Views from fixed to fluid (pallavkul)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/69ae95a8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/69ae95a8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/69ae95a8

Branch: refs/heads/branch-2.5
Commit: 69ae95a821bbb8fa2dff5ee0b0cf404221c2befd
Parents: 2bd7f28
Author: pallavkul <pallav.kul@gmail.com>
Authored: Tue Jan 3 17:47:35 2017 +0530
Committer: pallavkul <pallav.kul@gmail.com>
Committed: Tue Jan 3 17:49:38 2017 +0530

----------------------------------------------------------------------
 ambari-web/app/routes/views.js         | 10 ++++++++++
 ambari-web/app/styles/application.less |  4 ++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/69ae95a8/ambari-web/app/routes/views.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/views.js b/ambari-web/app/routes/views.js
index 1d19279..71ded8e 100644
--- a/ambari-web/app/routes/views.js
+++ b/ambari-web/app/routes/views.js
@@ -36,6 +36,16 @@ module.exports = Em.Route.extend({
   viewDetails: Em.Route.extend({
 
     route: '/:viewName/:version/:instanceName',
+    
+    enter: function (router) {
+      Em.$('body').addClass('contribview');
+    },
+
+    exit:function (router) {
+      this._super();
+      Em.$('body').removeClass('contribview');
+    },
+    
     connectOutlets: function (router, params) {
       // find and set content for `mainViewsDetails` and associated controller
       var href = ['/views', params.viewName, params.version, params.instanceName + "/"].join('/');

http://git-wip-us.apache.org/repos/asf/ambari/blob/69ae95a8/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index d34222e..f7cab50 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -5088,6 +5088,10 @@ i.icon-asterisks {
   .main-container {
     width: 1170px;
   }
+  
+  .contribview .main-container {
+    width: auto;
+  }
 
   .span12 {
     width: 1170px;


Mime
View raw message