Clean up forums.go

All the really highly redundant stuff was pulled into a helper type.
This commit is contained in:
Ben Visness 2021-07-23 15:35:18 -05:00
parent 9b9d467ce4
commit 15ff1de6fc
2 changed files with 350 additions and 458 deletions

View File

@ -5,6 +5,7 @@
<h3 class="mb3">Are you sure you want to delete this post?</h3>
{{ template "forum_post_standalone.html" .Post }}
<form action="{{ .SubmitUrl }}" method="POST" class="pv3 flex justify-end">
{{ csrftoken .Session }}
<input type="submit" value="Delete Post">
</form>
</div>

File diff suppressed because it is too large Load Diff