summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMaks1mS <maks1ms@noreply.codeberg.org>2024-12-10 08:26:37 +0100
committerMaks1mS <maks1ms@noreply.codeberg.org>2024-12-10 08:26:37 +0100
commitab2127faef35135d85bfc3c695952936a30c8fd5 (patch)
tree24212bde5956a7a982c9463bce7661fbb2663561 /templates
parentfeat: add synchronization for SSH keys with OpenID Connect (diff)
parentMerge pull request '[gitea] week 2024-50 cherry pick (gitea/main -> forgejo)'... (diff)
downloadforgejo-ab2127faef35135d85bfc3c695952936a30c8fd5.tar.xz
forgejo-ab2127faef35135d85bfc3c695952936a30c8fd5.zip
Merge branch 'forgejo' into feat/add-oidc-ssh-keys
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/box.tmpl2
-rw-r--r--templates/repo/home.tmpl1
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 230e49752f..1c73be9fb9 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -130,7 +130,7 @@
</div>
<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>
{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
- <button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}" data-tooltip-content="{{ctx.Locale.Tr "copy_generic"}}" aria-label="{{ctx.Locale.Tr "copy_generic"}}">{{svg "octicon-copy" 14}}</button>
+ <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>
{{if $file.IsGenerated}}
<span class="ui label">{{ctx.Locale.Tr "repo.diff.generated"}}</span>
{{end}}
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 5fa31f15c2..9cbdef53ca 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -113,6 +113,7 @@
<span class="breadcrumb-divider">/</span>
{{- if eq $i $l -}}
<span class="active section" title="{{$v}}">{{$v}}</span>
+ <button class="btn interact-fg tw-p-2" data-clipboard-text="{{$.TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}">{{svg "octicon-copy" 14}}</button>
{{- else -}}
{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{$v}}</a></span>
{{- end -}}