web frontend for git (tangled's grandpa)
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Link to parent commit file version in commit view

It makes sense for [oldfile] in [oldfile]->[newfile] to link to the
previous version. This is also how cgit behaves.

authored by

phire and committed by
Anirudh Oppiliappan
13757407 e5d35c4d

+2 -1
+2 -1
templates/commit.html
··· 45 45 <section> 46 46 {{ $repo := .name }} 47 47 {{ $this := .commit.This }} 48 + {{ $parent := .commit.Parent }} 48 49 {{ range .diff }} 49 50 <div id="{{ .Name.New }}"> 50 51 <div class="diff"> ··· 58 59 <span class="diff-type">M</span> 59 60 {{ end }} 60 61 {{ if .Name.Old }} 61 - <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a> 62 + <a href="/{{ $repo }}/blob/{{ $parent }}/{{ .Name.Old }}">{{ .Name.Old }}</a> 62 63 {{ if .Name.New }} 63 64 &#8594; 64 65 <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>