<div class="outline">
{{ if .Post.Pending }}(pending) {{ end }}<a href="{{ .Post.Link }}" referrerpolicy="origin">{{ .Post.Title }}</a>
<span class="size08">
{{ with .Post.Site }}(<a href="/site/{{.}}">{{ . }}</a>){{ end }}
<br>from <a href="/u/{{ .Post.PersonName }}">{{ .Post.PersonName }}</a> to <a href="/g/{{ .Post.GroupName }}">{{ .Post.GroupName }}</a> on {{ .Post.WebDate }}
<br><a href="{{ .Post.APid }}">{{ .Post.APid }}</a>
</span>
<p>{{ .Post.HTContent }}
{{ range .Post.Attachments }}
<p><img src="/file/{{ .Xid }}" title="{{ .Desc }}" alt="{{ .Desc }}">
{{ end }}
<p>{{ range .Post.Tags }}<a href="/tag/{{ slice . 1 }}">{{ . }}</a> {{ end }}
</p>
{{ if and .UserInfo (not .Preview) }}
{{ if .Post.IsShared .UserInfo.Person.ID }}
<form class="inline" action="/unshare" method="POST">
<input type="hidden" name="postxid" value="{{ .Post.Xid }}">
<button tabindex=3>unshare</button>
</form>
{{ else }}
<form class="inline" action="/share" method="POST">
<input type="hidden" name="postxid" value="{{ .Post.Xid }}">
<button tabindex=3>share</button>
</form>
{{ end }}
{{ if .Post.IsSubbed .UserInfo.ID }}
<form class="inline" action="/unsubscribe" method="POST">
<input type="hidden" name="post" value="{{ .Post.Xid }}">
<button tabindex=3>unsubscribe</button>
</form>
{{ else }}
<form class="inline" action="/subscribe" method="POST">
<input type="hidden" name="post" value="{{ .Post.Xid }}">
<button tabindex=3>subscribe</button>
</form>
{{ end }}
{{ if .Post.Pending }}{{ if .Post.CanApprove .UserInfo }}
<button tabindex=3><a href="{{ .Post.Rel }}/approve">approve</a></button>
{{ end }}{{ end }}
{{ if .Post.CanMod .UserInfo }}
<button tabindex=3><a href="{{ .Post.Rel }}/edit">edit</a></button>
{{ end }}
<button tabindex=3><a href="/report?what={{ .Post.APid }}">report</a></button>
{{ end }}
</div>
