Skip to content

Commit efb55cd

Browse files
authored
Supplement and Improvement for #32558 (#32585)
Thank you for @wxiaoguang's reminders and suggestions: #32558 (comment)
1 parent 23d0f90 commit efb55cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ enable_update_checker = Enable Update Checker
352352
enable_update_checker_helper = Checks for new version releases periodically by connecting to gitea.io.
353353
env_config_keys = Environment Configuration
354354
env_config_keys_prompt = The following environment variables will also be applied to your configuration file:
355-
config_write_file_prompt = These configuration options will be written into:
355+
config_write_file_prompt = These configuration options will be written into: %s
356356

357357
[home]
358358
nav_menu = Navigation Menu

templates/install.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@
338338

339339
<div class="inline field">
340340
<div class="right-content">
341-
{{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>
341+
{{$copyBtn := svg "octicon-copy" 14}}
342+
{{$filePath := HTMLFormat `<span class="ui label">%s</span> <button class="btn interact-fg" data-clipboard-text="%s">%s</button>` .CustomConfFile .CustomConfFile $copyBtn}}
343+
{{ctx.Locale.Tr "install.config_write_file_prompt" $filePath}}
342344
</div>
343345
<div class="tw-mt-4 tw-mb-2 tw-text-center">
344346
<button class="ui primary button">{{ctx.Locale.Tr "install.install_btn_confirm"}}</button>

0 commit comments

Comments
 (0)