2020-11-06 17:45:31 +00:00
|
|
|
{{ define "title" }}
|
|
|
|
<title>{{ string .Blog.Lang "webmentions" }} - {{ .Blog.Title }}</title>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<h1>{{ string .Blog.Lang "webmentions" }}</h1>
|
|
|
|
{{ $blog := .Blog }}
|
2021-01-30 18:37:26 +00:00
|
|
|
{{ range $i, $mention := .Data.Mentions }}
|
2020-11-06 17:45:31 +00:00
|
|
|
<div class="p">
|
2020-11-16 17:34:29 +00:00
|
|
|
<p>
|
|
|
|
From: <a href="{{ $mention.Source }}" target="_blank" rel="noopener noreferrer">{{ $mention.Source }}</a><br/>
|
|
|
|
To: <a href="{{ $mention.Target }}" target="_blank">{{ $mention.Target }}</a><br/>
|
|
|
|
Created: {{ unixtodate $mention.Created }}
|
|
|
|
</p>
|
2020-11-06 17:45:31 +00:00
|
|
|
<form method="post">
|
2020-12-19 10:06:55 +00:00
|
|
|
<input type="hidden" name="mentionid" value="{{ $mention.ID }}">
|
2021-01-30 18:37:26 +00:00
|
|
|
{{ if eq $mention.Status "verified" }}
|
|
|
|
<input type="submit" formaction="/webmention/approve" value="{{ string $blog.Lang "approve" }}">
|
|
|
|
{{ end }}
|
2020-12-19 10:06:55 +00:00
|
|
|
<input type="submit" formaction="/webmention/delete" value="{{ string $blog.Lang "delete" }}">
|
2020-11-06 17:45:31 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-01-30 18:37:26 +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>
|
2020-11-06 17:45:31 +00:00
|
|
|
{{ end }}
|
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "webmentionadmin" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|