mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
added link to monitoring page in the account dropdown menu for admin users only
This commit is contained in:
parent
a75c455633
commit
b35da4557f
@ -25,12 +25,12 @@ function Home($scope, $compile, $routeParams, $rootScope, $location, Wait, Dashb
|
||||
awToolTip: "Refresh the page",
|
||||
ngClick: "refresh()",
|
||||
ngShow:"socketStatus == 'error'"
|
||||
},
|
||||
stream: {
|
||||
ngClick: "showActivity()",
|
||||
awToolTip: "View Activity Stream",
|
||||
mode: 'all'
|
||||
}
|
||||
// stream: {
|
||||
// ngClick: "showActivity()",
|
||||
// awToolTip: "View Activity Stream",
|
||||
// mode: 'all'
|
||||
// }
|
||||
};
|
||||
|
||||
html = Button({
|
||||
@ -39,11 +39,11 @@ function Home($scope, $compile, $routeParams, $rootScope, $location, Wait, Dashb
|
||||
toolbar: true
|
||||
});
|
||||
|
||||
// html += Button({
|
||||
// btn: buttons.stream,
|
||||
// action: 'stream',
|
||||
// toolbar: true
|
||||
// });
|
||||
html += Button({
|
||||
btn: buttons.stream,
|
||||
action: 'stream',
|
||||
toolbar: true
|
||||
});
|
||||
|
||||
e = angular.element(document.getElementById('home-list-actions'));
|
||||
e.html(html);
|
||||
|
@ -62,7 +62,6 @@ body {
|
||||
|
||||
#account-submenu {
|
||||
margin-right: 5px;
|
||||
height: 140px; /* shouldn't need this, but for some reason we do */
|
||||
}
|
||||
|
||||
@media (max-width: 1075px) {
|
||||
|
@ -183,6 +183,7 @@
|
||||
<a href="" id="main_view_user" ng-click="viewCurrentUser()">Account Settings</a></li>
|
||||
<a href="" id="main_view_license" ng-click="viewLicense()">View License</a></li>
|
||||
<a href="https://ansibleworks.zendesk.com/anonymous_requests/new" id="main_contact_support" target="_blank">Contact Support</a></li>
|
||||
<a id="main_munin" target="_blank" ng-show="user_is_superuser" href="http://munin-monitoring.org/">Monitor Tower</a></li>
|
||||
<a href="#/logout" id="main_logout">Logout</a>
|
||||
</nav>
|
||||
|
||||
@ -217,6 +218,7 @@
|
||||
<li><a id="main_view_user" href="" ng-click="viewCurrentUser()">Account Settings</a></li>
|
||||
<li><a id="main_view_license" href="" ng-click="viewLicense()">View License</a></li>
|
||||
<li><a id="main_contact_support" target="_blank" href="https://ansibleworks.zendesk.com/anonymous_requests/new">Contact Support</a></li>
|
||||
<li><a id="main_munin" target="_blank" ng-show="user_is_superuser" href="http://munin-monitoring.org/">Monitor Tower</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a id="main_logout" href="#/logout">Logout</a></li>
|
||||
</ul>
|
||||
@ -231,6 +233,7 @@
|
||||
<li><a id="main_view_user" href="" ng-click="viewCurrentUser()">Account Settings</a></li>
|
||||
<li><a id="main_view_license" href="" ng-click="viewLicense()">View License</a></li>
|
||||
<li><a id="main_contact_support" target="_blank" href="https://ansibleworks.zendesk.com/anonymous_requests/new">Contact Support</a></li>
|
||||
<li><a id="main_munin" target="_blank" ng-show="user_is_superuser" href="http://munin-monitoring.org/">Monitor Tower</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a id="main_logout" href="#/logout">Logout</a></li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user