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>
|
|
|
|
<h2>{{ string .Blog.Lang "verified" }}</h2>
|
|
|
|
{{ $blog := .Blog }}
|
|
|
|
{{ range $i, $mention := .Data.Verified }}
|
|
|
|
<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 }}">
|
|
|
|
<input type="submit" formaction="/webmention/approve" value="{{ string $blog.Lang "approve" }}">
|
|
|
|
<input type="submit" formaction="/webmention/delete" value="{{ string $blog.Lang "delete" }}">
|
2020-11-06 17:45:31 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<h2>{{ string .Blog.Lang "approved" }}</h2>
|
|
|
|
{{ range $i, $mention := .Data.Approved }}
|
|
|
|
<div class="p">
|
2020-11-11 15:58:44 +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 }}">
|
|
|
|
<input type="submit" formaction="/webmention/delete" value="{{ string $blog.Lang "delete" }}">
|
2020-11-06 17:45:31 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "webmentionadmin" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|