summaryrefslogtreecommitdiff
path: root/vrsite/templates/page-notes.tmpl
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-30 17:05:12 -0300
committerGabriel Schneider <[email protected]>2026-07-30 17:56:23 -0300
commit8ec4e135e318c7799b2576a8729493c063da4a97 (patch)
treeab37cdbb7f478eb996264cf941891f127f303c85 /vrsite/templates/page-notes.tmpl
parentcb05c363045bf0e7af5858f6d7bc26f026fa9d70 (diff)
downloadnotevi-8ec4e135e318c7799b2576a8729493c063da4a97.tar.gz
notevi-8ec4e135e318c7799b2576a8729493c063da4a97.zip
Diffstat (limited to 'vrsite/templates/page-notes.tmpl')
-rw-r--r--vrsite/templates/page-notes.tmpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/vrsite/templates/page-notes.tmpl b/vrsite/templates/page-notes.tmpl
index 974dc64..242c137 100644
--- a/vrsite/templates/page-notes.tmpl
+++ b/vrsite/templates/page-notes.tmpl
@@ -7,7 +7,16 @@
<header class="filehead">
<h1>Notes</h1>
<p class="meta">
- {{len .Site.Notes}} in the log{{if .Live}} · anything you add here is appended to the log — the repo is never touched{{end}}
+ {{if eq .Scope "all"}}
+ all {{.Site.NotesTotal}} in the log, every change
+ {{else if .ScopeEmpty}}
+ all {{.Site.NotesTotal}} in the log — nothing was recorded at <code>{{short .ChangeID}}</code>
+ {{else}}
+ {{len .Site.Notes}} written at <code title="{{.ChangeID}}">{{short .ChangeID}}</code>{{if .Elsewhere}} ·
+ {{if .Live}}<a href="{{.ScopeHref "all"}}">{{.Elsewhere}} more at other changes</a>
+ {{else}}{{.Elsewhere}} more at other changes are not in this export{{end}}{{end}}
+ {{end}}
+ {{if .Live}} · anything you add here is appended to the log at this change — the repo is never touched{{end}}
</p>
</header>