Browse Source

commit.RefUrl expects AppUrl argument

This is fixup for ea375c0dcc. 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
tags/v1.2.0-rc1
Adam Strzelecki 9 years ago
parent
commit
fe562dbafa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/view_list.tmpl

+ 1
- 1
templates/repo/view_list.tmpl View File

@@ -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}}


Loading…
Cancel
Save