mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 00:17:29 -02:30
Merge pull request #491 from jaredevantabor/footer
Directivize footer and make it sticky
This commit is contained in:
@@ -7,13 +7,16 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
html, body { height: 100%; }
|
html { height: 100%; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: @black;
|
color: @black;
|
||||||
padding-top: 58px;
|
padding-top: 58px;
|
||||||
|
min-height: 100%;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-menu-container {
|
#main-menu-container {
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ import './shared/InventoryTree';
|
|||||||
import './shared/Socket';
|
import './shared/Socket';
|
||||||
import './job-templates/main';
|
import './job-templates/main';
|
||||||
import './shared/features/main';
|
import './shared/features/main';
|
||||||
|
import './footer/main';
|
||||||
|
|
||||||
|
|
||||||
/*#if DEBUG#*/
|
/*#if DEBUG#*/
|
||||||
@@ -180,7 +181,8 @@ var tower = angular.module('Tower', [
|
|||||||
'AboutAnsibleHelpModal',
|
'AboutAnsibleHelpModal',
|
||||||
'PortalJobsListDefinition',
|
'PortalJobsListDefinition',
|
||||||
'features',
|
'features',
|
||||||
'longDateFilter'
|
'longDateFilter',
|
||||||
|
'footer'
|
||||||
])
|
])
|
||||||
|
|
||||||
.constant('AngularScheduler.partials', urlPrefix + 'lib/angular-scheduler/lib/')
|
.constant('AngularScheduler.partials', urlPrefix + 'lib/angular-scheduler/lib/')
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
color: #848992;
|
color: #848992;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1040;
|
z-index: 1040;
|
||||||
position: fixed;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|||||||
16
awx/ui/client/src/footer/footer.directive.js
Normal file
16
awx/ui/client/src/footer/footer.directive.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/*************************************************
|
||||||
|
* Copyright (c) 2015 Ansible, Inc.
|
||||||
|
*
|
||||||
|
* All Rights Reserved
|
||||||
|
*************************************************/
|
||||||
|
|
||||||
|
export default
|
||||||
|
['templateUrl',
|
||||||
|
function(templateUrl) {
|
||||||
|
return {
|
||||||
|
restrict: 'E',
|
||||||
|
scope: true,
|
||||||
|
templateUrl: templateUrl('footer/footer')
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
8
awx/ui/client/src/footer/footer.partial.html
Normal file
8
awx/ui/client/src/footer/footer.partial.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<footer class='Footer'>
|
||||||
|
<a href="http://www.ansible.com" target="_blank">
|
||||||
|
<div class="Footer-logo">
|
||||||
|
<img id="footer-logo" alt="Red Hat, Inc. | Ansible, Inc." class="Footer-logoImage" src="/static/assets/footer-logo.png">
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div class="Footer-copyright">Copyright © 2015 <a class="Footer-link" href="http://www.redhat.com" target="_blank">Red Hat</a>, Inc. All Rights Reserved.</div>
|
||||||
|
</footer>
|
||||||
11
awx/ui/client/src/footer/main.js
Normal file
11
awx/ui/client/src/footer/main.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
/*************************************************
|
||||||
|
* Copyright (c) 2015 Ansible, Inc.
|
||||||
|
*
|
||||||
|
* All Rights Reserved
|
||||||
|
*************************************************/
|
||||||
|
|
||||||
|
import footerDirective from './footer.directive';
|
||||||
|
|
||||||
|
export default
|
||||||
|
angular.module('footer', [])
|
||||||
|
.directive('towerFooter', footerDirective);
|
||||||
@@ -247,15 +247,7 @@
|
|||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<div class="site-footer"></div>
|
<div class="site-footer"></div>
|
||||||
<footer class='Footer'>
|
<tower-footer></tower-footer>
|
||||||
<a href="http://www.ansible.com" target="_blank">
|
|
||||||
<div class="Footer-logo">
|
|
||||||
<img id="footer-logo" alt="Red Hat, Inc. | Ansible, Inc." class="Footer-logoImage" src="/static/assets/footer-logo.png">
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="Footer-copyright">Copyright © 2015 <a class="Footer-link" href="http://www.redhat.com" target="_blank">Red Hat</a>, Inc. All Rights Reserved.</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// HACK: Need this to support global-dependent
|
// HACK: Need this to support global-dependent
|
||||||
// config-loading behavior
|
// config-loading behavior
|
||||||
@@ -263,6 +255,5 @@
|
|||||||
|
|
||||||
require('app');
|
require('app');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user