aboutsummaryrefslogtreecommitdiffstats
path: root/templates/install.tmpl
diff options
context:
space:
mode:
authorKerwin Bryant <kerwin612@qq.com>2024-11-21 10:42:37 +0800
committerGitHub <noreply@github.com>2024-11-21 02:42:37 +0000
commitefb55cd8ef484bbe949e95465b4c17d6e31e7270 (patch)
tree0ac3097b82eea29d860b8334c4044f44d6889d46 /templates/install.tmpl
parent23d0f9083e2d8b735b1b0578c348f73c0e4ae3dc (diff)
downloadgitea-efb55cd8ef484bbe949e95465b4c17d6e31e7270.tar.gz
gitea-efb55cd8ef484bbe949e95465b4c17d6e31e7270.zip
Supplement and Improvement for #32558 (#32585)
Thank you for @wxiaoguang's reminders and suggestions: https://github.com/go-gitea/gitea/pull/32558#discussion_r1849972913
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r--templates/install.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl
index ea4023d409..6c4cc7df01 100644
--- a/templates/install.tmpl
+++ b/templates/install.tmpl
@@ -338,7 +338,9 @@
<div class="inline field">
<div class="right-content">
- {{ctx.Locale.Tr "install.config_write_file_prompt"}} <span class="ui label">{{.CustomConfFile}}</span> <button class="btn interact-fg" data-clipboard-text="{{.CustomConfFile}}">{{svg "octicon-copy" 14}}</button>
+ {{$copyBtn := svg "octicon-copy" 14}}
+ {{$filePath := HTMLFormat `<span class="ui label">%s</span> <button class="btn interact-fg" data-clipboard-text="%s">%s</button>` .CustomConfFile .CustomConfFile $copyBtn}}
+ {{ctx.Locale.Tr "install.config_write_file_prompt" $filePath}}
</div>
<div class="tw-mt-4 tw-mb-2 tw-text-center">
<button class="ui primary button">{{ctx.Locale.Tr "install.install_btn_confirm"}}</button>