aboutsummaryrefslogtreecommitdiff
path: root/templates/issue-new.html
diff options
context:
space:
mode:
authorLena <lena@omega>2026-08-01 00:00:00 +0000
committerLena <lena@omega>2026-08-01 00:00:00 +0000
commitbb6bc2387d58c737dbf92e73f8544bf39319dbd8 (patch)
tree6d5eaf5dac213074cd832da50f64260fce728fed /templates/issue-new.html
downloadgit-forge-master.tar.gz
Enter git-forgeHEADmaster
A small self-hosted git forge: HTTP push and pull, cgit browsing, local and OIDC accounts, TOTP, scoped push tokens, per-repo permissions, issues, a wiki, and outbound mail. It does not reimplement git. git-http-backend and cgit run as CGI behind its own listener, which authorises every request before exec'ing either. One binary, one data directory, one listener: no database, no JavaScript, and state is JSON in a git repo with a working tree.
Diffstat (limited to 'templates/issue-new.html')
-rw-r--r--templates/issue-new.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/issue-new.html b/templates/issue-new.html
new file mode 100644
index 0000000..ed102aa
--- /dev/null
+++ b/templates/issue-new.html
@@ -0,0 +1,27 @@
+{{define "title"}}New issue, {{.Data.Path}} - {{.Site}}{{end}}
+{{define "main"}}
+<h2>Open an issue</h2>
+<form method="post" action="/{{.Data.Path}}/issues">
+<input type="hidden" name="csrf" value="{{.CSRF}}">
+<p>
+<label for="title">Title</label>
+<input id="title" name="title" required maxlength="200">
+</p>
+<p>
+<label for="body">Description. Markdown, and raw HTML is not rendered.</label>
+<textarea id="body" name="body" rows="12"></textarea>
+</p>
+{{with .Data.Labels}}
+<fieldset>
+<legend>Labels</legend>
+{{range .}}
+<label class="inline" for="label-{{.}}">
+<input id="label-{{.}}" type="checkbox" name="label" value="{{.}}">
+{{.}}
+</label>
+{{end}}
+</fieldset>
+{{end}}
+<p><button type="submit">Open</button></p>
+</form>
+{{end}}