2021-01-23 16:24:47 +00:00
|
|
|
{{ define "title" }}
|
|
|
|
<title>{{ string .Blog.Lang "comments" }} - {{ .Blog.Title }}</title>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<h1>{{ string .Blog.Lang "comments" }}</h1>
|
|
|
|
{{ $blog := .Blog }}
|
2021-02-17 15:07:42 +00:00
|
|
|
{{ range $i, $comment := .Data.Comments }}
|
2021-01-23 16:24:47 +00:00
|
|
|
<div class="p">
|
|
|
|
<p>
|
2021-02-17 18:22:59 +00:00
|
|
|
ID: {{ $comment.ID }}<br/>
|
2021-01-23 16:24:47 +00:00
|
|
|
Target: <a href="{{ $comment.Target }}" target="_blank">{{ $comment.Target }}</a><br/>
|
2021-02-17 18:22:59 +00:00
|
|
|
Name: {{ if $comment.Website }}<a href="{{ $comment.Website }}" target="_blank" rel="nofollow noopener noreferrer ugc">{{ $comment.Name }}</a>{{ else }}{{ $comment.Name }}{{ end }}
|
|
|
|
</p>
|
2021-02-20 14:42:45 +00:00
|
|
|
<p>
|
2021-02-17 18:22:59 +00:00
|
|
|
{{ html $comment.Comment }}
|
2021-01-23 16:24:47 +00:00
|
|
|
</p>
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="commentid" value="{{ $comment.ID }}">
|
|
|
|
<input type="submit" formaction="comment/delete" value="{{ string $blog.Lang "delete" }}">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-02-17 15:07:42 +00:00
|
|
|
{{ if .Data.HasPrev }}
|
|
|
|
<p><a href="{{ .Data.Prev }}">{{ string .Blog.Lang "prev" }}</a></p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Data.HasNext }}
|
|
|
|
<p><a href="{{ .Data.Next }}">{{ string .Blog.Lang "next" }}</a></p>
|
|
|
|
{{ end }}
|
2021-01-23 16:24:47 +00:00
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "commentsadmin" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|