bouquins/views/author.jade
2014-06-29 19:55:58 +02:00

42 lines
1.0 KiB
Plaintext

extends layout
block content
ol.breadcrumb
li
a(href="/")= t('bouquins.nav.home')
li
a(href="/#authors")= t('bouquins.nav.authors')
li.active= title
div.container
div.page-header
h1
span.glyphicon.glyphicon-user
= ' '+name
h2
span.glyphicon.glyphicon-book
= ' '+t('bouquins.author.books')
ul
each book in books
li
a(href='/book/'+book.id)
= book.title+' '
if book.serie
span.glyphicon.glyphicon-list
a(href='/serie/'+book.serie.id)
= ' '+book.serie.name+' ('+book.series_index+')'
if series
h2
span.glyphicon.glyphicon-list
= ' '+t('bouquins.author.series')
ul
each serie in series
li: a(href='/serie/'+serie.id)= ' '+serie.name
if coauthors
h2
span.glyphicon.glyphicon-user
= ' '+t('bouquins.author.coauthors')
ul
each author in coauthors
li: a(href='/author/'+author.id)= author.name
include footer.jade