summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-14 14:41:13 +0800
committerUnknwon <u@gogs.io>2016-01-14 14:41:13 +0800
commitcb92af4a6c7bc7090ecaed8dc99e89c45bce697c (patch)
tree49d42de17e0f348c6470c2e0ee8705208e871e6a
parentae2c6d42fdaef39108d65c34ce314abdddf2674f (diff)
parent41fdaabcf7e060c057272ef845842011ca637bfc (diff)
downloadgitea-cb92af4a6c7bc7090ecaed8dc99e89c45bce697c.tar.gz
gitea-cb92af4a6c7bc7090ecaed8dc99e89c45bce697c.zip
Merge pull request #2398 from nanoant/patch/fix-refurl-arg
commit.RefUrl expects AppUrl argument
-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}}