File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 7878 {{end}}
7979 <td class="text right aligned gt-py-0">
8080 <button class="btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button>
81- {{if $.FileName}}
82- <a class="btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_path"}}" href="{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}">{{svg "octicon-file-code"}}</a>
83- {{end}}
81+ <a
82+ class="btn interact-bg gt-p-3"
83+ data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_path"}}"
84+ href="{{if $.FileName}}{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}{{else}}{{printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}}{{end}}">
85+ {{svg "octicon-file-code"}}
86+ </a>
8487 </td>
8588 </tr>
8689 {{end}}
You can’t perform that action at this time.
0 commit comments