]> source.dussan.org Git - gitea.git/commitdiff
Optimize installation-page experience (#32558)
authorKerwin Bryant <kerwin612@qq.com>
Wed, 20 Nov 2024 00:39:57 +0000 (08:39 +0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 00:39:57 +0000 (00:39 +0000)
![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.

options/locale/locale_en-US.ini
templates/install.tmpl

index c3639fb72e2f3f26c13a428f8d02e6e8f7bed0be..122b70924a9ca53c7b2373da149433a4375f4f4e 100644 (file)
@@ -352,6 +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:
 
 [home]
 nav_menu = Navigation Menu
index 5055031a9029c6969d6aa82ab8fa7f1029f5bae5..ea4023d40909861acad532c21855cd774a2e3339 100644 (file)
 
                                        <div class="inline field">
                                                <div class="right-content">
-                                                       These configuration options will be written into: {{.CustomConfFile}}
+                                                       {{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>
                                                </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>