{{ template "header.html" . }}
{{ template "headeronegroup.html" . }}
<main>
<div class="outline">
{{ .Group.Display }} - {{ .Group.Name }}
{{ if .Group.IsRemote }} - <a href="{{ .Group.APid }}">{{ .Group.APid }}</a>{{ end }}
<p><details><summary>About</summary>
{{ .Group.HTDesc }}
</details>
{{ with .Group.Mods }}
<p>mods: {{ range . }} {{ . }}{{ end }}
{{ end }}
{{ if .UserInfo }}
<p>
{{ if .Group.IsSubbed .UserInfo.ID }}
<form class="inline" action="/unsubscribe" method="POST">
<input type="hidden" name="group" value="{{ .Group.Name }}">
<button>unsubscribe</button>
</form>
{{ else }}
<form class="inline" action="/subscribe" method="POST">
<input type="hidden" name="group" value="{{ .Group.Name }}">
<button>subscribe</button>
</form>
{{ end }}
{{ if .Group.IsMod .UserInfo }}
<button><a href="{{ .Group.Rel }}/edit">edit</a></button>
{{ end }}
<button><a href="/report?what={{ .Group.APid }}">report</a></button>
{{ end }}
</div>
{{ template "multipost.html" . }}
</main>
