diff options
| author | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
| commit | bb6bc2387d58c737dbf92e73f8544bf39319dbd8 (patch) | |
| tree | 6d5eaf5dac213074cd832da50f64260fce728fed /templates/issue-new.html | |
| download | git-forge-bb6bc2387d58c737dbf92e73f8544bf39319dbd8.tar.gz | |
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.html | 27 |
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}} |