bouquins/views/book.jade
2014-07-08 11:26:49 +02:00

48 lines
1.4 KiB
Plaintext

extends layout
block content
ol.breadcrumb
li
a(href="/")= t('bouquins.nav.home')
li
a(href="/#books")= t('bouquins.nav.books')
li.active= title
div.container
div.page-header
h1
span.glyphicon.glyphicon-book
| #{title}
a.btn.btn-success(href='/calibre/'+path+'/'+data_name+'.'+format.toLowerCase())
span.glyphicon.glyphicon-download-alt
| #{t('bouquins.book.download')} #{format}
div.row
div.col-md-5
h2
span.glyphicon.glyphicon-user
| #{t('bouquins.book.authors')}
ul.list-unstyled
each author in authors
li: a(href='/author/'+author.id)= author.name
if series_name
h2
span.glyphicon.glyphicon-list
| #{t('bouquins.book.serie')}
div
a(href='/serie/'+series_id) #{series_name}
span.badge= series_index
h2
span.glyphicon.glyphicon-globe
| #{t('bouquins.book.language')}
div= lang_code
h2
span.glyphicon.glyphicon-tags
| #{t('bouquins.book.tags')}
div
each tag in tags
span.label.label-info= tag.name
|
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