mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
removed the link on the tower logo in portal mode
while in portal mode the tower logo should not take you to the tower dashboard. I removed the href while in portal mode. I also added a function for leaving portal mode which takes the user back to tower dashboardremoved the link on the tower logo in portal mode
This commit is contained in:
@@ -470,10 +470,13 @@ angular.module('Tower', [
|
|||||||
//base.replace(/\_/g, ' ');
|
//base.replace(/\_/g, ' ');
|
||||||
base = (base === 'job_events' || base === 'job_host_summaries') ? 'jobs' : base;
|
base = (base === 'job_events' || base === 'job_host_summaries') ? 'jobs' : base;
|
||||||
}
|
}
|
||||||
|
//make sure that the tower icon works when not in portal mode
|
||||||
|
$('.navbar-brand').attr('href', '/#/home');
|
||||||
$rootScope.portalMode=false;
|
$rootScope.portalMode=false;
|
||||||
if(base==='portal'){
|
if(base==='portal'){
|
||||||
$rootScope.portalMode= true;
|
$rootScope.portalMode= true;
|
||||||
|
//in portal mode we don't want the tower icon to lead anywhere
|
||||||
|
$('.navbar-brand').removeAttr('href');
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#ansible-list-title').html('<strong>' + base.replace(/\_/,' ') + '</strong>');
|
$('#ansible-list-title').html('<strong>' + base.replace(/\_/,' ') + '</strong>');
|
||||||
@@ -579,6 +582,10 @@ angular.module('Tower', [
|
|||||||
ShowSocketHelp();
|
ShowSocketHelp();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$rootScope.leavePortal = function() {
|
||||||
|
$location.path('/home/');
|
||||||
|
};
|
||||||
|
|
||||||
html = "<a href=\"\" ng-click=\"socketHelp()\" aw-pop-over=\"{{ socketTip }}\" aw-pop-over-watch=\"socketTip\" data-placement=\"bottom\" data-trigger=\"hover\" " +
|
html = "<a href=\"\" ng-click=\"socketHelp()\" aw-pop-over=\"{{ socketTip }}\" aw-pop-over-watch=\"socketTip\" data-placement=\"bottom\" data-trigger=\"hover\" " +
|
||||||
"data-popover-title=\"Live Events\" data-container=\"body\" style=\"font-size: 10px;\"><i class=\"fa icon-socket-{{ socketStatus }}\"></i></a>";
|
"data-popover-title=\"Live Events\" data-container=\"body\" style=\"font-size: 10px;\"><i class=\"fa icon-socket-{{ socketStatus }}\"></i></a>";
|
||||||
e = angular.element(document.getElementById('socket-beacon-div'));
|
e = angular.element(document.getElementById('socket-beacon-div'));
|
||||||
|
|||||||
Reference in New Issue
Block a user