parent
ffbca5e162
commit
6464d92dd4
3 changed files with 19 additions and 3 deletions
|
@ -68,7 +68,11 @@ func editHandler(h handler) {
|
|||
var data bookData
|
||||
data.Book = book
|
||||
data.S = GetStatus(h)
|
||||
data.S.Title = book.Title + " by " + book.Author[0] + " -- Edit -- " + data.S.Title
|
||||
author := ""
|
||||
if len(book.Author) > 0 {
|
||||
author = " by " + book.Author[0]
|
||||
}
|
||||
data.S.Title = book.Title + author + " -- Edit -- " + data.S.Title
|
||||
h.template.load(h, "edit", data)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue