{{ if .unshelved_books }}

Books lying around

{{ range .unshelved_books }}
{{ template "books/book" . }}
{{ end }}
{{ template "common/separator" }} {{ end }} {{ range .shelves }}

{{ .Name }}

{{ $b:=shelf_books .ID }} {{ if $b }}
{{ range $b }}
{{ template "books/book" . }}
{{ end }}
{{ else }}
 
{{ end }} {{ template "common/separator" }} {{ end }}