add footer to layout
add app name, version, url in footer
This commit is contained in:
parent
8e04349ef8
commit
0942319fa8
@ -27,6 +27,10 @@ app.set('view engine', 'jade');
|
||||
|
||||
// load config
|
||||
_.extend(app.locals, require('./config/'+app.get('env')+'.json'));
|
||||
var appPackage = require('./package.json');
|
||||
app.locals.appname = appPackage.name;
|
||||
app.locals.appversion = appPackage.version;
|
||||
app.locals.appurl = appPackage.url;
|
||||
|
||||
// nginx
|
||||
app.enable('trust proxy');
|
||||
|
@ -38,4 +38,3 @@ block content
|
||||
ul
|
||||
each author in coauthors
|
||||
li: a(href='/author/'+author.id)= author.name
|
||||
include footer.jade
|
||||
|
@ -44,4 +44,3 @@ 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
|
||||
|
@ -1,6 +1,7 @@
|
||||
footer.footer
|
||||
.container
|
||||
ul.list-inline
|
||||
li: a(href=appurl) #{appname} #{appversion}
|
||||
li: p.text-muted Copyright (c) 2014, Julien Guillot <meutel+github@meutel.net>
|
||||
li: a(href="/LICENSE.txt") View license
|
||||
li: a(href="http://calibre-ebook.com/",title="calibre"): img(src="/images/calibre.png")
|
||||
|
@ -48,7 +48,6 @@ 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() {
|
||||
|
@ -15,3 +15,4 @@ html(lang=lang)
|
||||
script(src="/js/home.js")
|
||||
body
|
||||
block content
|
||||
include footer.jade
|
||||
|
@ -28,4 +28,3 @@ block content
|
||||
ul
|
||||
each author in authors
|
||||
li: a(href='/author/'+author.id)= author.name
|
||||
include footer.jade
|
||||
|
Loading…
Reference in New Issue
Block a user