{{ template "base" . }} {{ define "title" }}Documents{{ end }} {{ define "header" }}Documents{{ end }} {{ define "content" }}
{{ if .Data.Filepath }} Read {{ end }}

ISBN-10:

{{ or .Data.Isbn10 "N/A" }}

ISBN-13:

{{ or .Data.Isbn13 "N/A" }}

{{ template "component/button" (dict "Title" "Upload Cover") }}
{{ template "component/button" (dict "Title" "Remove Cover") }}
{{ template "component/button" (dict "Title" "Delete") }}
{{ template "svg/activity" (dict "Size" 28) }}
{{ template "component/button" (dict "Title" "Identify") }}
{{ if .Data.Filepath }} {{ template "svg/download" (dict "Size" 28) }} {{ else }} {{ template "svg/download" (dict "Size" 28 "Disabled" true) }} {{ end }}
{{ template "component/key-val-edit" (dict "Title" "Title" "Value" .Data.Title "URL" (printf "./%s/edit" .Data.ID) "FormValue" "title" ) }} {{ template "component/key-val-edit" (dict "Title" "Author" "Value" .Data.Author "URL" (printf "./%s/edit" .Data.ID) "FormValue" "author" ) }}

Time Read

Seconds / Percent

{{ .Data.SecondsPerPercent }}

Words / Minute

{{ .Data.Wpm }}

Est. Time Left

{{ niceSeconds .TotalTimeLeftSeconds }}

{{ niceSeconds .Data.TotalTimeSeconds }}

Progress

{{ .Data.Percentage }}%

Description

{{ template "component/button" (dict "Title" "Save") }}

{{ or .Data.Description "N/A" }}

{{ template "component/metadata" (dict "ID" .Data.ID "Metadata" .Metadata "Error" .MetadataError ) }}
{{ end }}