2024-10-23 05:25:30 +00:00
|
|
|
{{ define "title" }} Guestbook View {{ end }}
|
|
|
|
{{ define "main" }}
|
|
|
|
<h1>Guestbook for {{ .Guestbook.SiteUrl }}</h1>
|
2024-11-11 19:55:01 +00:00
|
|
|
<p>
|
|
|
|
<a href="/guestbooks/{{ shortIdToSlug .Guestbook.ShortId }}/comments/create">New Comment</a>
|
|
|
|
</p>
|
2024-10-23 05:25:30 +00:00
|
|
|
{{ range .Comments }}
|
2024-11-11 19:55:01 +00:00
|
|
|
<div>
|
|
|
|
<strong> {{ .AuthorName }} </strong>
|
|
|
|
{{ .Created.Local.Format "01-02-2006 03:04PM" }}
|
|
|
|
<p>
|
|
|
|
{{ .CommentText }}
|
|
|
|
</p>
|
|
|
|
</div>
|
2024-10-23 05:25:30 +00:00
|
|
|
{{ else }}
|
|
|
|
<p>No comments yet!</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|