Skip to content

Commit 16bf69c

Browse files
committed
Add 'Copy path' button to file view go-gitea#32584
1 parent 56dd034 commit 16bf69c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/repo/home.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
<span class="breadcrumb-divider">/</span>
8383
{{- if eq $i $l -}}
8484
<span class="active section" title="{{$v}}">{{$v}}</span>
85+
<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>
8586
{{- else -}}
8687
{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{$v}}</a></span>
8788
{{- end -}}

0 commit comments

Comments
 (0)