Publish the size of the book before download

- Closes: #62
This commit is contained in:
Las Zenow 2021-02-09 17:32:13 +00:00
parent d81f1b92cd
commit a4b11142b2
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,7 @@ function delBook(){
{{if .Tags}}<dt>Tags</dt> <dd>{{range .Tags}}<a href="/search/?q=tag:{{.}}">{{.}}</a>, {{end}}</dd>{{end}}
{{if .Isbn}}<dt>ISBN</dt> <dd>{{.Isbn}}</dd>{{end}}
{{if .Date}}<dt>Date</dt> <dd>{{.Date}}</dd>{{end}}
{{if .FileSize}}<dt>Size</dt> <dd>{{printf "%.2f" (size2mb .FileSize)}} MB</dd>{{end}}
{{if .Lang}}<dt>Lang</dt> <dd><a href="/search/?q=lang:{{.Lang}}">{{.Lang}}</a> </dd>{{end}}
</dl>
</div>