Skip to content

Commit

Permalink
commit.RefUrl expects AppUrl argument
Browse files Browse the repository at this point in the history
This is fixup for ea375c0. The bug was not
visible because commit.RefUrl was always returning empty url due regression
described in gogs/git-module#4
  • Loading branch information
nanoant committed Jan 13, 2016
1 parent fc4a4d3 commit 41fdaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/view_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 41fdaab

Please sign in to comment.