13 lines
315 B
HTML
13 lines
315 B
HTML
|
{{ define "title" }} Guestbook View {{ end }}
|
||
|
{{ define "main" }}
|
||
|
<h1>Guestbook for {{ .Guestbook.SiteUrl }}</h1>
|
||
|
<a href="/guestbooks/{{ encodeId .Guestbook.ID }}/comments/create">New Comment</a>
|
||
|
<ul>
|
||
|
{{ range .Comments }}
|
||
|
<li> {{ .CommentText }} </li>
|
||
|
{{ else }}
|
||
|
</ul>
|
||
|
<p>No comments yet!</p>
|
||
|
{{ end }}
|
||
|
{{ end }}
|