enhance(web): show attachment URL and UUID in dropzone preview (#39203)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Grigor Tonikyan
2026-09-05 10:01:27 +00:00
committed by GitHub
co-authored by wxiaoguang
parent eb501f6b19
commit bde1af541c
21 changed files with 213 additions and 102 deletions
+1 -1
View File
@@ -16,6 +16,6 @@
{{if .IsAttachmentEnabled}}
<div class="field">
{{template "repo/upload" .}}
{{template "repo/upload" dict "UploadOptions" $.UploadOptions}}
</div>
{{end}}
+1 -1
View File
@@ -17,7 +17,7 @@
{{if .root.IsAttachmentEnabled}}
<div class="tw-mt-4 form-field-dropzone tw-hidden">{{/*TODO: need to refactor the "repo/upload" template and remove this wrapper */}}
{{template "repo/upload" .root}}
{{template "repo/upload" dict "UploadOptions" ctx.RootData.UploadOptions}}
</div>
{{end}}
{{end}}
+1 -1
View File
@@ -156,7 +156,7 @@
{{if .IsAttachmentEnabled}}
<div class="field">
{{template "repo/upload" .}}
{{template "repo/upload" dict "UploadOptions" $.UploadOptions}}
</div>
{{end}}
@@ -10,7 +10,7 @@
{{else}}
{{$referenceHTMLURL = printf "%s/files#%s" $issueHTMLURL .item.HashTag}}
{{end}}
<div class="item context js-aria-clickable" data-clipboard-text="{{$referenceHTMLURL}}">{{ctx.Locale.Tr "repo.issues.context.copy_link"}}</div>
<div class="item context js-aria-clickable" data-clipboard-text="{{$referenceHTMLURL}}">{{ctx.Locale.Tr "copy_link"}}</div>
<div class="item context js-aria-clickable" data-clipboard-target="#{{.item.HashTag}}-raw">{{ctx.Locale.Tr "repo.issues.context.copy_source"}}</div>
{{if ctx.RootData.IsSigned}}
{{$needDivider := false}}