+
diff --git a/awx/ui/client/src/portal-mode/portal-mode.route.js b/awx/ui/client/src/portal-mode/portal-mode.route.js
new file mode 100644
index 0000000000..f39cd20e4f
--- /dev/null
+++ b/awx/ui/client/src/portal-mode/portal-mode.route.js
@@ -0,0 +1,16 @@
+import {templateUrl} from '../shared/template-url/template-url.factory';
+
+export default {
+ name: 'portalMode',
+ url: '/portal',
+ templateUrl: templateUrl('portal-mode/portal-mode'),
+ controller: 'PortalModeController',
+ ncyBreadcrumb: {
+ label: "PORTAL MODE"
+ },
+ resolve: {
+ features: ['FeaturesService', function(FeaturesService) {
+ return FeaturesService.get();
+ }]
+ }
+}
\ No newline at end of file
diff --git a/awx/ui/client/src/shared/layouts/one-plus-one.less b/awx/ui/client/src/shared/layouts/one-plus-one.less
new file mode 100644
index 0000000000..ee578d995b
--- /dev/null
+++ b/awx/ui/client/src/shared/layouts/one-plus-one.less
@@ -0,0 +1,53 @@
+/*
+* Large resolution 1/2 + 1/2 width panels
+* Small resolution: 100% width panels, stacked
+* Options: static height, custom breakpoint
+*/
+
+@import "awx/ui/client/src/shared/branding/colors.default.less";
+
+
+.OnePlusOne-container(@height: 100%; @breakpoint: 900px){
+ height: @height;
+ display: flex;
+ flex-diration: row;
+ @media screen and(max-width: @breakpoint){
+ flex-direction: column;
+ }
+}
+
+.OnePlusOne-panel--left(@height: 100%; @breakpoint: 900px){
+ flex: 1 1;
+ height: @height;
+ width: 100%;
+ margin-right: 20px;
+ .Panel{
+ height: 100%;
+ }
+ @media screen and (max-width @breakpoint){
+ margin-right: 0px;
+ height: inherit;
+ }
+}
+
+.OnePlusOne-panel--right(@height: 100%; @breakpoint: 900px){
+ flex: 1 1;
+ height: @height;
+ width: 100%;
+ margin-right: 0px;
+ .Panel{
+ height: 100%;
+ }
+ @media screen and (max-width @breakpoint){
+ height: inherit;
+ }
+}
+
+.OnePlusOne-panelHeader{
+ color: @default-interface-txt;
+ font-size: 14px;
+ font-weight: bold;
+ margin-right: 10px;
+ text-transform: uppercase;
+ display: flex;
+}
diff --git a/awx/ui/client/src/widgets/PortalJobs.js b/awx/ui/client/src/widgets/PortalJobs.js
index 2725d75b59..7e6a033493 100644
--- a/awx/ui/client/src/widgets/PortalJobs.js
+++ b/awx/ui/client/src/widgets/PortalJobs.js
@@ -24,6 +24,7 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
choicesCount = 0,
listCount = 0,
jobs_scope = scope.$new(true),
+ pageSize = 12,
max_rows,
user,
html, e,
@@ -56,7 +57,7 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
list: PortalJobsList,
id: 'active-jobs',
url: url , //GetBasePath('jobs')+'?created_by='+user,
- pageSize: max_rows,
+ pageSize: pageSize,
spinner: true
});
@@ -71,7 +72,7 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
scope.removeChoicesReady = scope.$on('choicesReady', function() {
choicesCount++;
if (choicesCount === 2) {
- setPortalJobsHeight();
+ //setPortalJobsHeight();
scope.$emit('buildJobsList');
}
});
@@ -136,6 +137,7 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
// Set the height of each container and calc max number of rows containers can hold
+ /*
function setPortalJobsHeight() {
var docw = $(window).width(),
box_height, available_height, search_row, page_row, height, header, row_height;
@@ -191,9 +193,7 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
scope[PortalJobTemplateList.iterator + 'PageSize'] = max_rows;
scope.changePageSize(PortalJobTemplateList.name, PortalJobTemplateList.iterator, false);
}
-
-
-
+ */
};
}
]);