feat: add Close Issue and Add Comment forms to issue_detail.html template #37
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
internal/templates/issue_detail.htmltemplate currently only shows labels/apply-label. It needs Close Issue and Add Comment forms wired to the new backend routes added in leeworks-agents/gitea-mobile#36.What to do
Update
internal/templates/issue_detail.htmlto add:Close Issue button (only shown when
{{.Issue.State}} == "open"):Add Comment form at the bottom:
Wrap the comments block in
<div id="comment-list">so HTMX can prepend new comments.Acceptance Criteria
go test ./...passesDependencies
Depends on: leeworks-agents/gitea-mobile#36 (CloseIssue + PostComment client/handler)
Depends on: leeworks-agents/gitea-mobile#29 (existing issue tracking this area)
References
Roadmap Phase 2.2 — Issue Detail: Action buttons