aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-06-27 23:40:36 +0800
committerUnknwon <u@gogs.io>2016-06-27 23:40:36 +0800
commit73b4acbb639e6564f2a47e995f21ee50d78b283a (patch)
tree484f6e0e7f30bbaa55fd6d254ec442e3d0c1c282 /templates
parent8a248696e94e2756dee3f2a000fe8609a0c2111c (diff)
Update glide.yaml
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/view_list.tmpl7
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}}