diff options
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index c06ab3441f..4db9e39057 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -30,10 +30,11 @@ {{if $entry.IsSubModule}} <td> <span class="icon octicon octicon-file-submodule"></span> - {{if $commit.RefUrl AppUrl}} - <a href="{{$commit.RefUrl AppUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl AppUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a> + {{$refURL := $commit.RefURL AppUrl $.BranchLink}} + {{if $refURL}} + <a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a> {{else}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{end}} </td> {{else}} |