From 41fdaabcf7e060c057272ef845842011ca637bfc Mon Sep 17 00:00:00 2001 From: Adam Strzelecki <ono@java.pl> Date: Wed, 13 Jan 2016 19:01:53 +0100 Subject: [PATCH] commit.RefUrl expects AppUrl argument This is fixup for ea375c0dcca118c8ac3c48ba569b025836ad5ccf. The bug was not visible because commit.RefUrl was always returning empty url due regression described in https://github.com/gogits/git-module/pull/4 --- templates/repo/view_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index d88d7b559..b3dee5610 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -31,7 +31,7 @@ <td> <span class="icon octicon octicon-file-submodule"></span> {{if $commit.RefUrl AppUrl}} - <a href="{{$commit.RefUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a> + <a href="{{$commit.RefUrl AppUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl AppUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a> {{else}} {{$entry.Name}} @ {{ShortSha $commit.RefId}} {{end}}