mixin book(book)
  article.book
    h5 #{book.title}
    h6 #{book.author}
    .cover
      a(href=`javascript:displayCover("${book.id}")`)
        img(src=`/book/${book.id}/cover.png`)
    if (user)
      .edit
        h7
          img(src="images/book_edit.svg")
        a(href=`javascript:editDocument("${book.id}")`) Editer
    h7
      img(src="images/book_download.svg")
    .dl-links
      a(class="btn" href=`/book/${book.id}/download.pdf`) PDF
      a(class="btn" href=`/book/${book.id}/download.epub`) ePUB

