Merge pull request #491 from jaredevantabor/footer

Directivize footer and make it sticky
This commit is contained in:
jaredevantabor 2015-11-05 17:17:52 -08:00
commit 229be0a99e
7 changed files with 44 additions and 13 deletions

View File

@ -7,13 +7,16 @@
*
*/
html, body { height: 100%; }
html { height: 100%; }
body {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
color: @black;
padding-top: 58px;
min-height: 100%;
padding-bottom: 40px;
position: relative;
}
#main-menu-container {

View File

@ -67,6 +67,7 @@ import './shared/InventoryTree';
import './shared/Socket';
import './job-templates/main';
import './shared/features/main';
import './footer/main';
/*#if DEBUG#*/
@ -180,7 +181,8 @@ var tower = angular.module('Tower', [
'AboutAnsibleHelpModal',
'PortalJobsListDefinition',
'features',
'longDateFilter'
'longDateFilter',
'footer'
])
.constant('AngularScheduler.partials', urlPrefix + 'lib/angular-scheduler/lib/')

View File

@ -6,7 +6,7 @@
color: #848992;
width: 100%;
z-index: 1040;
position: fixed;
position: absolute;
right: 0;
left: 0;
bottom: 0;

View 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')
};
}
];

View 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 &copy 2015 <a class="Footer-link" href="http://www.redhat.com" target="_blank">Red Hat</a>, Inc. All Rights Reserved.</div>
</footer>

View 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);

View File

@ -247,15 +247,7 @@
</div>
-->
<div class="site-footer"></div>
<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 &copy 2015 <a class="Footer-link" href="http://www.redhat.com" target="_blank">Red Hat</a>, Inc. All Rights Reserved.</div>
</footer>
<tower-footer></tower-footer>
<script>
// HACK: Need this to support global-dependent
// config-loading behavior
@ -263,6 +255,5 @@
require('app');
</script>
</body>
</html>