Skip to content

Commit 69268ee

Browse files
authored
Optimize installation-page experience (#32558)
![3000-gogitea-gitea-kiagpwhqbx1 ws-us116 gitpod io_ (1)](https://github.com/user-attachments/assets/7f9ff835-7122-420e-83a9-218a1b9c7030) Highlight the path of the configuration file with a label-style emphasis and provide a quick copy button.
1 parent 0d5abd9 commit 69268ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -352,6 +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:
355356

356357
[home]
357358
nav_menu = Navigation Menu

templates/install.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338

339339
<div class="inline field">
340340
<div class="right-content">
341-
These configuration options will be written into: {{.CustomConfFile}}
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>
342342
</div>
343343
<div class="tw-mt-4 tw-mb-2 tw-text-center">
344344
<button class="ui primary button">{{ctx.Locale.Tr "install.install_btn_confirm"}}</button>

0 commit comments

Comments
 (0)