summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/commit.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/commit.html b/templates/commit.html
index f0c58dc..440204b 100644
--- a/templates/commit.html
+++ b/templates/commit.html
@@ -45,6 +45,7 @@
<section>
{{ $repo := .name }}
{{ $this := .commit.This }}
+ {{ $parent := .commit.Parent }}
{{ range .diff }}
<div id="{{ .Name.New }}">
<div class="diff">
@@ -58,7 +59,7 @@
<span class="diff-type">M</span>
{{ end }}
{{ if .Name.Old }}
- <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a>
+ <a href="/{{ $repo }}/blob/{{ $parent }}/{{ .Name.Old }}">{{ .Name.Old }}</a>
{{ if .Name.New }}
&#8594;
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>