diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/.VERSION | 2 | ||||
-rw-r--r-- | templates/repo/view_list.tmpl | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/templates/.VERSION b/templates/.VERSION index 3fc8b249..e3cd2c73 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.31.0627
\ No newline at end of file +0.9.31.0628
\ No newline at end of file diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index c06ab344..4db9e390 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}} |