<!--index.html-->
{{ define "library/books.html" }}
{{ template "header.html" .}}
{{ template "library/menu.html" . }}
<ul class="nav nav-tabs">
  <li role="presentation" class="active"><a href="/library/book">Books</a></li>
  <li role="presentation"><a href="/library/author">Authors</a></li>
  <li role="presentation"><a href="/library/publisher">Publishers</a></li>
</ul>
<div class="panel panel-default">
  <table class="table">
    <caption>Liste der Bücher</caption>
    <tr><th scope="col">Title</th></tr>
    {{range .payload }}
      <tr><td><a href="/library/book/view/{{.ID.Hex}}">{{.Title}}</a></td></tr>
    {{end}}
  </table>
  <div class="panel-body">
    <a href="/library/book/create">Add entry</a>
  </div>
</div>

{{ template "footer.html" .}}

{{ end }}
