bouquins/views/author.jade
Meutel f9a2ce72d6 refactoring initial
link home page with items
2014-06-28 08:44:52 +02:00

41 lines
939 B
Plaintext

extends layout
block content
ol.breadcrumb
li
a(href="/") Home
li
a(href="/#authors") Auteurs
li.active= title
div.container
div.page-header
h1
span.glyphicon.glyphicon-user
= ' '+name
h2
span.glyphicon.glyphicon-book
| Livres
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
| Series
ul
each serie in series
li: a(href='/serie/'+serie.id)= ' '+serie.name
if coauthors
h2
span.glyphicon.glyphicon-user
| Co-Auteur(s)
ul
each author in coauthors
li: a(href='/author/'+author.id)= author.name