diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 53052333fa0e..d50b6aedb9fa 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -78,12 +78,9 @@ {{end}} - - {{svg "octicon-file-code"}} - + {{if $.FileName}}{{/* this "view" link is for file only. the commit link is already in the second column */}} + {{svg "octicon-file-code"}} + {{end}} {{end}}