aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2016-01-13 19:01:53 +0100
committerAdam Strzelecki <ono@java.pl>2016-01-13 19:09:50 +0100
commit41fdaabcf7e060c057272ef845842011ca637bfc (patch)
tree9aee145e18cdcbd687a47b87aef44633b2d0e288 /templates/repo/view_list.tmpl
parentfc4a4d38d16e47fe2584bd574872929669de42c1 (diff)
downloadgitea-41fdaabcf7e060c057272ef845842011ca637bfc.tar.gz
gitea-41fdaabcf7e060c057272ef845842011ca637bfc.zip
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
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index d88d7b5597..b3dee5610f 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}}