diff --git a/web/guestbook.templ b/web/guestbook.templ index 58c5255..c9f346b 100644 --- a/web/guestbook.templ +++ b/web/guestbook.templ @@ -3,6 +3,7 @@ package web import "fmt" import "strconv" import "strings" +import "time" import "net/http" import "git.arav.su/Arav/justguestbook" @@ -38,29 +39,25 @@ templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCou if !entry.HideWebsite { {{ website = entry.Website }} } - { strconv.FormatInt(entry.ID, 10) } by { entry.Name } { website } on + { strconv.FormatInt(entry.ID, 10) } by { entry.Name } { website } on for _, line := range strings.Split(entry.Message, "\n") { +
0 && line[0] == '>' { -
{ line }
- } else { -{ line }
- } + class="quote" + }>{ line } } if entry.Reply != nil {0 && line[0] == '>' { -
@templ.Raw(line) -
- } else { -@templ.Raw(line) -
- } + class="quote" + }>@templ.Raw(line) }