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

Reviewed-on: #8
Co-authored-by: codegirl-007 <s.raide@gmail.com>
This commit was merged in pull request #8.
This commit is contained in:
2026-08-27 16:21:38 +00:00
committed by codegirl007
parent f420f888af
commit 8a2c7de8ca
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}}">