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} if format 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 | h2 #{t('bouquins.book.details')} ul if pubdate li strong #{t('bouquins.book.detail.pubdate')} | #{new Date(pubdate).getMonth()}-#{new Date(pubdate).getFullYear()} if pubname li strong #{t('bouquins.book.detail.pubname')} | #{pubname} if custom each item in custom li if item.label strong #{item.label} else strong #{t('bouquins.book.detail.'+item.name)} case item.type when "bool" if item.value == 1 span.glyphicon.glyphicon-ok else span.glyphicon.glyphicon-remove default | #{item.value} div.col-md-7 if has_cover == 1 img.img-rounded.img-responsive(src='/calibre/'+path+'/cover.jpg',alt=t('bouquins.book.nocover'))