summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@cloudflare.com>2015-03-10 03:08:17 +0000
committerFilippo Valsorda <filippo@cloudflare.com>2015-03-10 03:08:17 +0000
commit5d5d774e03ea02b29ff2bd25e1bf63ce82851fc5 (patch)
tree953cddb2e3194926266ee9f9e28b3ee235be11a1 /templates/repo/view_list.tmpl
parent5e763baa12e346f8eb577073399068802fa5d67a (diff)
downloadgitea-5d5d774e03ea02b29ff2bd25e1bf63ce82851fc5.tar.gz
gitea-5d5d774e03ea02b29ff2bd25e1bf63ce82851fc5.zip
Handle submodules without a .gitmodules entry - fix #1023
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 06536b4728..f51c10025a 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -39,7 +39,11 @@
<span class="octicon octicon-file-submodule"></span>
</td>
<td class="name">
+ {{if $commit.RefUrl}}
<a href="{{$commit.RefUrl}}" class="text-truncate">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a>
+ {{else}}
+ {{$entry.Name}} @ {{ShortSha $commit.RefId}}
+ {{end}}
</td>
{{else}}
<td class="icon">