diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-28 21:53:40 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-28 21:53:40 -0400 |
commit | 2401e68d7ed7d53425293ad32d231542d03bbef3 (patch) | |
tree | c57bd73e14c98e42857eadb29a2151cd2562c64a /templates/repo/diff.tmpl | |
parent | 31805e2bbea17d5fc3806f472ddab42736e7b4a1 (diff) | |
download | gitea-2401e68d7ed7d53425293ad32d231542d03bbef3.tar.gz gitea-2401e68d7ed7d53425293ad32d231542d03bbef3.zip |
Prepare for v0.3.1 hotfix
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r-- | templates/repo/diff.tmpl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 38fe3fee2c..0b6d4f722e 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -8,13 +8,11 @@ <a class="pull-right btn btn-primary btn-sm" rel="nofollow" href="{{.SourcePath}}">Browse Source</a> <h4>{{.Commit.Message}}</h4> </div> - {{ $username := .Username }} - {{ $reponame := .Reponame }} <div class="panel-body"> <span class="pull-right"> <ul class="list-unstyled"> {{range .Parents}} - <li>parent <a href="/{{$username}}/{{$reponame}}/commit/{{.}}"><span class="label label-default sha">{{ShortSha .}}</span></a></li> + <li>parent <a href="{{$.RepoLink}}/commit/{{.}}"><span class="label label-default sha">{{ShortSha .}}</span></a></li> {{end}} <li>commit <span class="label label-default sha">{{ShortSha .CommitId}}</span></li> </ul> |