From 73b4acbb639e6564f2a47e995f21ee50d78b283a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 27 Jun 2016 23:40:36 +0800 Subject: Update glide.yaml --- templates/.VERSION | 2 +- templates/repo/view_list.tmpl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'templates') 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}} - {{if $commit.RefUrl AppUrl}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{$refURL := $commit.RefURL AppUrl $.BranchLink}} + {{if $refURL}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{else}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{end}} {{else}} -- cgit v1.2.3