2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/guix-cuirass.git synced 2023-12-14 06:03:04 +01:00

Add a footer.

* src/cuirass/templates.scm (html-page): Add a footer.
* src/static/css/cuirass.css (body, footer): New sections.
This commit is contained in:
Mathieu Othacehe 2021-03-26 21:45:03 +01:00
parent ff3f25d287
commit a0d42b171f
No known key found for this signature in database
GPG key ID: 8354763531769CA6
2 changed files with 21 additions and 1 deletions

View file

@ -35,6 +35,7 @@
#:use-module (guix store)
#:use-module ((guix utils) #:select (string-replace-substring
version>?))
#:use-module (cuirass config)
#:use-module ((cuirass database) #:select (build-status
build-weather
evaluation-status))
@ -198,7 +199,12 @@ columnDefs: [
,(search-form query))
(main (@ (role "main") (class "container pt-4 px-1"))
,body
(hr)))))
(hr))
(footer
(@ (class "footer text-center"))
(p (a (@ (href "http://guix.gnu.org/cuirass/"))
,(string-append "Cuirass " %package-version))
" — Copyright © 2016 - 2021 by the GNU Guix community.")))))
(define (status-class status)
(cond

View file

@ -43,3 +43,17 @@ a.dropdown-toggle:focus + .dropdown-menu {
.no-dropdown-arrow::after {
content: none;
}
body {
margin-bottom: 60px; /* Margin bottom by footer height */
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 50px; /* Set the fixed height of the footer here */
line-height: 60px; /* Vertically center the text there */
background-color: #f5f5f5;
}