File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ copy_url = Copy URL
104
104
copy_hash = Copy hash
105
105
copy_content = Copy content
106
106
copy_branch = Copy branch name
107
+ copy_path = Copy path
107
108
copy_success = Copied!
108
109
copy_error = Copy failed
109
110
copy_type_unsupported = This file type cannot be copied
Original file line number Diff line number Diff line change 130
130
</div>
131
131
<span class="file tw-flex tw-items-center tw-font-mono tw-flex-1"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>
132
132
{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
133
- <button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button>
133
+ <button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}" >{{svg "octicon-copy" 14}}</button>
134
134
{{if $file.IsGenerated}}
135
135
<span class="ui label">{{ctx.Locale.Tr "repo.diff.generated"}}</span>
136
136
{{end}}
Original file line number Diff line number Diff line change 128
128
<span class="breadcrumb-divider">/</span>
129
129
{{- if eq $i $l -}}
130
130
<span class="active section" title="{{$v}}">{{$v}}</span>
131
+ <button class="btn interact-fg tw-mx-1" data-clipboard-text="{{$.TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}">{{svg "octicon-copy" 14}}</button>
131
132
{{- else -}}
132
133
{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{$v}}</a></span>
133
134
{{- end -}}
You can’t perform that action at this time.
0 commit comments