diff options
Diffstat (limited to 'templates/commit.html')
-rw-r--r-- | templates/commit.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/commit.html b/templates/commit.html index b1b3cbc..65803b7 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -49,8 +49,11 @@ <div class="diff"> <div id="{{ .Name.New }}"> {{ if .Name.Old }} - <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a> → - <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> + <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a> + {{ if .Name.New }} + → + <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> + {{ end }} {{ else }} <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> {{- end -}} |