summaryrefslogtreecommitdiff
path: root/vrsite/templates/page-change.tmpl
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-02 12:36:54 -0300
committerGabriel Schneider <[email protected]>2026-08-02 17:37:58 -0300
commite16f78b255bcf46d8c6f9a4b9e76dd7a3817edeb (patch)
treede0db0c369522b5bf92ff32a8351de2224c5c9dc /vrsite/templates/page-change.tmpl
parent151ea12251ed876aa87bb486da1bc337e25369e9 (diff)
downloadnotevi-e16f78b255bcf46d8c6f9a4b9e76dd7a3817edeb.tar.gz
notevi-e16f78b255bcf46d8c6f9a4b9e76dd7a3817edeb.zip
Diffstat (limited to 'vrsite/templates/page-change.tmpl')
-rw-r--r--vrsite/templates/page-change.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/vrsite/templates/page-change.tmpl b/vrsite/templates/page-change.tmpl
index 08310e5..8641da7 100644
--- a/vrsite/templates/page-change.tmpl
+++ b/vrsite/templates/page-change.tmpl
@@ -1,5 +1,6 @@
{{define "page-change"}}
{{$c := .Change}}
+{{$p := .}}
<header class="filehead">
<h1>{{$c.Row.Short}} <span class="meta">{{$c.Row.Flags}}</span></h1>
<p class="meta">
@@ -14,7 +15,7 @@
{{if $c.Parents}}
<p class="meta">parents:
- {{range $c.Parents}}<a href="/change/{{.ID}}"><code>{{.Short}}</code></a> {{.Desc}} {{end}}
+ {{range $c.Parents}}<a href="{{$p.Href "change" .ID}}"><code>{{.Short}}</code></a> {{.Desc}} {{end}}
</p>
{{end}}
@@ -24,7 +25,7 @@
<tbody>
{{range $c.Files}}
<tr><td class="st st-{{.Status}}">{{.Status}}</td>
- <td><a href="/code/{{.Path}}?rev={{$c.Row.ID}}">{{.Path}}</a></td></tr>
+ <td><a href="{{$p.Href "code" .Path}}">{{.Path}}</a></td></tr>
{{end}}
</tbody>
</table>