package web import "fmt" import "strconv" import "strings" import "net/http" import "git.arav.su/Arav/justguestbook" import "git.arav.su/Arav/dwelling-home/pkg/util" templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCount int64, r *http.Request) { @base("Guestbook", "This is my guestbook. Welcome.", "guestbook, personal", "/guestbook", guestbookHead()) {

Use > to make a quote.
CAPTCHA Valid for 10 minutes.
for _, entry := range entries {
{{ created_tz := util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") }} {{ website := "" }} if !entry.HideWebsite { {{ website = entry.Website }} } { strconv.FormatInt(entry.ID, 10) } by { entry.Name } { website } on
for _, line := range strings.Split(entry.Message, "\n") { if len(line) > 0 && line[0] == '>' {

{ line }

} else {

{ line }

} } if entry.Reply != nil {
{{ reply_created_tz := util.ToClientTimezone(entry.Reply.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") }} Reply by { owner } in
for _, line := range strings.Split(entry.Reply.Message, "\n") { if len(line) > 0 && line[0] == '>' {

@templ.Raw(line)

} else {

@templ.Raw(line)

} }
}
} if len(entries) == 0 {

No posts.

}
if pageCount > 1 {
for n := int64(1); n <= pageCount; n++ { {{ strN := strconv.FormatInt(n, 10) }} }