{{template "header.html" .S}}

All your submissions:

{{$role := .S.Role}} {{range .Submissions}}

{{.Filename}} {{if not .Book}} {{else if .Book.Active}} {{else}} {{end}} {{.Status}}

{{$comment := .Comment}} {{$submissionID := .SubmissionID}} {{with .Book}} {{if .}}

{{.Title}}

{{if .Authors}}Authors: {{range $i, $author := .Authors}} {{if $i}}&{{end}} {{$author}} {{end}}
{{end}} {{if .Publisher}}Publisher: {{.Publisher}}
{{end}} {{if .Tags}}Tags: {{range $i, $tag := .Tags}} {{if $i}},{{end}} {{$tag}} {{end}}
{{end}} {{if .Isbn}}ISBN: {{.Isbn}}
{{end}} {{if .Date}}Date: {{.Date}}
{{end}} {{if .Lang}}Lang: {{.Lang}}
{{end}}

{{if and .ID (not .Active)}}
{{if eq $role "admin" "moderator"}} save {{end}} edit delete
{{end}}

{{.Description}}

{{if not .Active}}
{{end}}
{{end}} {{end}} {{end}} {{template "footer.html" .S}}