aboutsummaryrefslogtreecommitdiff
path: root/templates/home.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/home.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/home.html')
-rw-r--r--templates/home.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html
new file mode 100644
index 0000000..a7460f8
--- /dev/null
+++ b/templates/home.html
@@ -0,0 +1,16 @@
+{{define "title"}}{{.Site}}{{end}}
+{{define "main"}}
+<table summary="repository list" class="list nowrap">
+<tr class="nohover"><th class="left">Name</th><th class="left">Description</th></tr>
+{{range .Data.Repos}}
+<tr>
+<td><a href="/{{.Path}}/">{{.Path}}</a>{{if eq .Repo.Visibility "private"}} <span class="dim">private</span>{{end}}</td>
+<td>{{.Repo.Desc}}</td>
+</tr>
+{{else}}
+<tr><td colspan="2" class="dim">
+{{if $.User}}Nothing you can read yet.{{else}}Nothing public here. <a href="/login">Sign in</a> to see the rest.{{end}}
+</td></tr>
+{{end}}
+</table>
+{{end}}