diff options
author | Joe Chen <jc@unknwon.io> | 2023-02-14 14:46:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 14:46:29 +0800 |
commit | 2a375007eed6529c464a14e0bd963bfd3d4cd2dc (patch) | |
tree | a15294fa9cc1abca251996ee68a8c21851c82922 /templates/repo/view_list.tmpl | |
parent | c63448e357975a2d4a7342fd75ae35527bc2a548 (diff) |
fix(repo): be tolerant to implicit submodules (#7352)
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index f19090fe..94f8dbfe 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -28,7 +28,7 @@ {{if .Submodule}} <td> <span class="octicon octicon-file-submodule"></span> - <a href="{{InferSubmoduleURL $.RepoLink .Submodule}}">{{.Entry.Name}} @ {{ShortSHA1 .Submodule.Commit}}</a> + <a href="{{InferSubmoduleURL $.RepoLink .Submodule}}">{{.Entry.Name}} {{if .Submodule.Commit}}@ {{ShortSHA1 .Submodule.Commit}}{{end}}</a> </td> {{else}} <td class="name"> |