Add post permalinks
CI / test (pull_request) Successful in 6m17s

This commit is contained in:
2026-08-27 09:20:23 -07:00
parent f420f888af
commit e09b7a7040
3 changed files with 14 additions and 0 deletions
+3
View File
@@ -33,6 +33,9 @@
</form>
</details>
{{end}}
<a class="linkish post-permalink"
href="/questions/{{.Root.ID}}#post-{{.Post.ID}}"
aria-label="Permanent link to post by {{.Post.AuthorName}}">Permalink</a>
{{if and (not .Post.ParentID) (isAdmin .User)}}
<form class="post-hide" method="post" action="/questions/{{.Post.ID}}/hide">
<input type="hidden" name="_csrf" value="{{.CSRF}}">