File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 78
78
{{end}}
79
79
<td class="text right aligned gt-py-0">
80
80
<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>
84
87
</td>
85
88
</tr>
86
89
{{end}}
You can’t perform that action at this time.
0 commit comments