mirror of
https://github.com/ansible/awx.git
synced 2026-07-02 03:48:02 -02:30
fixed the columns and sizing of portal widgets
i had to create new list items for the two widgets. portaljobtemplates and portaljobs which resemeble their respective parent copies but with many things removed and column widths adjusted. i also changed the sizing functions for the job list widget to better handle browser resizing
This commit is contained in:
@@ -25,15 +25,15 @@
|
||||
*
|
||||
*/
|
||||
function PortalController($scope, $compile, $routeParams, $rootScope, $location, $log, Wait, ClearScope, Stream, Rest, GetBasePath, ProcessErrors,
|
||||
Button, PortalJobTemplate, GenerateList, JobTemplateList, SearchInit, PaginateInit, PlaybookRun){
|
||||
Button, PortalJobsWidget, GenerateList, PortalJobTemplateList, SearchInit, PaginateInit, PlaybookRun){
|
||||
|
||||
ClearScope('portal');
|
||||
|
||||
var html,
|
||||
e,
|
||||
winHeight,
|
||||
available_height,
|
||||
list = JobTemplateList,
|
||||
// winHeight,
|
||||
// available_height,
|
||||
list = PortalJobTemplateList,
|
||||
view= GenerateList,
|
||||
defaultUrl = GetBasePath('job_templates'),
|
||||
buttons = {
|
||||
@@ -71,9 +71,9 @@ function PortalController($scope, $compile, $routeParams, $rootScope, $location,
|
||||
$scope.removeLoadPortal();
|
||||
}
|
||||
$scope.removeLoadPortal = $scope.$on('LoadPortal', function () {
|
||||
winHeight = $(window).height();
|
||||
available_height = Math.floor(winHeight - $('#main-menu-container .navbar').outerHeight() - $('#refresh-row').outerHeight() - 30);
|
||||
$('.portal-container').height(available_height);
|
||||
// winHeight = $(window).height();
|
||||
// available_height = Math.floor(winHeight - $('#main-menu-container .navbar').outerHeight() - $('#refresh-row').outerHeight() - 30);
|
||||
// $('.portal-container').height(available_height);
|
||||
|
||||
view.inject( list, {
|
||||
id : 'portal-job-template',
|
||||
@@ -106,7 +106,7 @@ function PortalController($scope, $compile, $routeParams, $rootScope, $location,
|
||||
|
||||
$scope.search(list.iterator);
|
||||
|
||||
PortalJobTemplate({
|
||||
PortalJobsWidget({
|
||||
scope: $scope,
|
||||
target: 'portal-jobs',
|
||||
// dashboard: data
|
||||
@@ -136,5 +136,5 @@ function PortalController($scope, $compile, $routeParams, $rootScope, $location,
|
||||
}
|
||||
|
||||
PortalController.$inject = ['$scope', '$compile', '$routeParams', '$rootScope', '$location', '$log','Wait', 'ClearScope', 'Stream', 'Rest', 'GetBasePath', 'ProcessErrors',
|
||||
'Button', 'PortalJobTemplate', 'GenerateList' , 'JobTemplateList', 'SearchInit', 'PaginateInit', 'PlaybookRun'
|
||||
'Button', 'PortalJobsWidget', 'GenerateList' , 'PortalJobTemplateList', 'SearchInit', 'PaginateInit', 'PlaybookRun'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user