bouquins/views/book.jade

59 lines
1.8 KiB
Plaintext
Raw Normal View History

extends layout
2014-06-20 18:58:12 +00:00
block content
2014-06-20 18:58:12 +00:00
ol.breadcrumb
li
2014-06-28 23:21:17 +00:00
a(href="/")= t('bouquins.nav.home')
2014-06-20 18:58:12 +00:00
li
2014-06-28 23:21:17 +00:00
a(href="/#books")= t('bouquins.nav.books')
2014-06-20 18:58:12 +00:00
li.active= title
div.container
div.page-header
h1
span.glyphicon.glyphicon-book
2014-07-08 09:26:49 +00:00
| #{title}
2014-09-02 18:07:44 +00:00
if format
a.btn.btn-success(href='/calibre/'+path+'/'+data_name+'.'+format.toLowerCase())
span.glyphicon.glyphicon-download-alt
| #{t('bouquins.book.download')} #{format}
2014-06-20 18:58:12 +00:00
div.row
div.col-md-5
h2
span.glyphicon.glyphicon-user
2014-07-08 09:26:49 +00:00
| #{t('bouquins.book.authors')}
2014-06-20 18:58:12 +00:00
ul.list-unstyled
each author in authors
li: a(href='/author/'+author.id)= author.name
if series_name
h2
span.glyphicon.glyphicon-list
2014-07-08 09:26:49 +00:00
| #{t('bouquins.book.serie')}
2014-06-20 18:58:12 +00:00
div
2014-07-08 09:26:49 +00:00
a(href='/serie/'+series_id) #{series_name}
2014-06-20 18:58:12 +00:00
span.badge= series_index
h2
span.glyphicon.glyphicon-globe
2014-07-08 09:26:49 +00:00
| #{t('bouquins.book.language')}
2014-06-20 18:58:12 +00:00
div= lang_code
h2
span.glyphicon.glyphicon-tags
2014-07-08 09:26:49 +00:00
| #{t('bouquins.book.tags')}
2014-06-20 18:58:12 +00:00
div
each tag in tags
span.label.label-info= tag.name
|
2014-09-02 18:07:44 +00:00
h2 #{t('bouquins.book.details')}
ul
if pubdate
li
strong #{t('bouquins.book.detail.pubdate')}
| #{new Date(pubdate).getMonth()}-#{new Date(pubdate).getFullYear()}
if custom
each item in custom
li
strong #{t('bouquins.book.detail.'+item.name)}
| #{item.value}
2014-06-20 18:58:12 +00:00
div.col-md-7
if has_cover == 1
2014-06-28 23:21:17 +00:00
img.img-rounded.img-responsive(src='/calibre/'+path+'/cover.jpg',alt=t('bouquins.book.nocover'))