aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-11 16:35:26 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-11 16:35:26 +0800
commitaf0b336cdf9e7cd81e706758d8a74623f4e33140 (patch)
tree77b99bb909c02b63b8bea852bff9c334434663d1
parent_{head,footer}.html: Add underscore to indicate that it's partial (diff)
downloadforge-af0b336cdf9e7cd81e706758d8a74623f4e33140.tar.gz
forge-af0b336cdf9e7cd81e706758d8a74623f4e33140.tar.zst
forge-af0b336cdf9e7cd81e706758d8a74623f4e33140.zip
repo_index: Link to repo log
Diffstat (limited to '')
-rw-r--r--handle_repo_log.go1
-rw-r--r--templates/repo_index.html.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/handle_repo_log.go b/handle_repo_log.go
index 88b1f06..6a2d8bb 100644
--- a/handle_repo_log.go
+++ b/handle_repo_log.go
@@ -6,6 +6,7 @@ import (
"github.com/go-git/go-git/v5/plumbing"
)
+// TODO: I probably shouldn't include *all* commitsh here...
func handle_repo_log(w http.ResponseWriter, r *http.Request) {
data := make(map[string]any)
// TODO: Sanitize path values
diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl
index 2cc3a84..7c5422d 100644
--- a/templates/repo_index.html.tmpl
+++ b/templates/repo_index.html.tmpl
@@ -10,7 +10,7 @@
<table id="recent-commits">
<thead>
<tr class="title-row">
- <th colspan="4">Recent Commits</th>
+ <th colspan="4">Recent Commits (<a href="log/{{ .ref }}/">see all</a>)</th>
</tr>
<tr>
<th scope="col">ID</th>