diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 36c3024d1..2e70f4ff8 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -49,7 +49,7 @@ {{svg "octicon-file-submodule" 16}} {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} {{if $refURL}} - {{$entry.Name}}@{{ShortSha $commit.RefID}} + {{$entry.Name}}@{{ShortSha $commit.RefID}} {{else}} {{$entry.Name}}@{{ShortSha $commit.RefID}} {{end}} @@ -58,7 +58,7 @@ {{$subJumpablePathName := $entry.GetSubJumpablePathName}} {{$subJumpablePath := SubJumpablePath $subJumpablePathName}} {{svg "octicon-file-directory" 16}} - + {{if eq (len $subJumpablePath) 2}} {{index $subJumpablePath 0}}{{index $subJumpablePath 1}} {{else}} @@ -67,14 +67,14 @@ {{else}} {{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} - {{$entry.Name}} + {{$entry.Name}} {{end}} {{end}}