footer and license

This commit is contained in:
Meutel 2014-06-29 19:55:58 +02:00
parent 407edb411b
commit 9938486f69
11 changed files with 54 additions and 0 deletions

23
LICENSE.txt Normal file
View File

@ -0,0 +1,23 @@
Copyright (c) 2014, Julien Guillot <meutel+bouquins@meutel.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1
public/LICENSE.txt Symbolic link
View File

@ -0,0 +1 @@
../LICENSE.txt

17
public/css/bouquins.css Normal file
View File

@ -0,0 +1,17 @@
/** Sticky footer: http://getbootstrap.com/examples/sticky-footer/ */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 40px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 30px;
background-color: #f5f5f5;
}

BIN
public/images/bootstrap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

BIN
public/images/nodejs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -38,3 +38,4 @@ block content
ul
each author in coauthors
li: a(href='/author/'+author.id)= author.name
include footer.jade

View File

@ -44,3 +44,4 @@ block content
div.col-md-7
if has_cover == 1
img.img-rounded.img-responsive(src='/calibre/'+path+'/cover.jpg',alt=t('bouquins.book.nocover'))
include footer.jade

8
views/footer.jade Normal file
View File

@ -0,0 +1,8 @@
footer.footer
.container
ul.list-inline
li: p.text-muted Copyright (c) 2014, Julien Guillot &lt;meutel+github@meutel.net&gt;
li: a(href="/LICENSE.txt") View license
li: a(href="http://getbootstrap.com/",title="bootstrap"): img(src="/images/bootstrap.png")
li: a(href="http://expressjs.com/") Express
li: a(href="http://nodejs.org/",title="node.js"): img(src="/images/nodejs.png")

View File

@ -48,6 +48,7 @@ block content
div.btn-group.center-block
each p in [10,20,50,100]
button.btn.btn-default.perpage(type="button",value=p)= p
include footer.jade
script
| $(function() {
| $.i18n.init().done(function() {

View File

@ -7,6 +7,7 @@ html(lang=lang)
meta(name="viewport",content="width=device-width, initial-scale=1")
title= title
link(rel='stylesheet', href='/css/bootstrap.min.css')
link(rel='stylesheet', href='/css/bouquins.css')
script(src="/js/jquery.min.js")
script(src="/js/bootstrap.min.js")
script(src="/js/i18next.min.js")

View File

@ -28,3 +28,4 @@ block content
ul
each author in authors
li: a(href='/author/'+author.id)= author.name
include footer.jade