Skip to content

Commit

Permalink
Supplement and Improvement for #32558 (#32585)
Browse files Browse the repository at this point in the history
Thank you for @wxiaoguang's reminders and suggestions:
#32558 (comment)
  • Loading branch information
kerwin612 authored Nov 21, 2024
1 parent 23d0f90 commit efb55cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ enable_update_checker = Enable Update Checker
enable_update_checker_helper = Checks for new version releases periodically by connecting to gitea.io.
env_config_keys = Environment Configuration
env_config_keys_prompt = The following environment variables will also be applied to your configuration file:
config_write_file_prompt = These configuration options will be written into:
config_write_file_prompt = These configuration options will be written into: %s

[home]
nav_menu = Navigation Menu
Expand Down
4 changes: 3 additions & 1 deletion templates/install.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit efb55cd

Please sign in to comment.