diff options
author | mirko <mirko.perillo@gmail.com> | 2024-06-07 19:12:48 +0200 |
---|---|---|
committer | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-06-07 19:12:48 +0200 |
commit | f015846c110a335f208c7ee09a1773f1e29fc95a (patch) | |
tree | c3b4344d36bdfc4d1493e75cec0a5a25fcc21493 /routers/install | |
parent | Merge pull request 'Update module github.com/huandu/xstrings to v1.5.0' (#405... (diff) | |
download | forgejo-f015846c110a335f208c7ee09a1773f1e29fc95a.tar.xz forgejo-f015846c110a335f208c7ee09a1773f1e29fc95a.zip |
Add slogan config (#3752)
This is a PR for #3616
Currently added a new optional config `SLOGAN` in ini file. When this config is set title page is modified in APP_NAME [ - SLOGAN]
Example in image below
![Selezione_075.png](/attachments/7a72171e-e730-4e57-8c97-ffc94258e00f)
Add the new config value in the admin settings page (readonly)
![Screenshot 2024-05-13 at 18-04-13 My Forgejo.png](/attachments/dad00fc2-29fa-4371-a7b9-5233eadeac13)
## TODO
* [x] Add the possibility to add the `SLOGAN` config from the installation form
* [ ] Update https://forgejo.org/docs/next/admin/config-cheat-sheet
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3752
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: mirko <mirko.perillo@gmail.com>
Co-committed-by: mirko <mirko.perillo@gmail.com>
Diffstat (limited to 'routers/install')
-rw-r--r-- | routers/install/install.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/install/install.go b/routers/install/install.go index 8f4fafa6f5..dfd8047d04 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -115,7 +115,8 @@ func Install(ctx *context.Context) { ctx.Data["CurDbType"] = curDBType // Application general settings - form.AppName = setting.AppName + form.AppName = "Forgejo" + form.AppSlogan = "Beyond coding. We Forge." form.RepoRootPath = setting.RepoRootPath form.LFSRootPath = setting.LFS.Storage.Path @@ -383,6 +384,7 @@ func SubmitInstall(ctx *context.Context) { } cfg.Section("").Key("APP_NAME").SetValue(form.AppName) + cfg.Section("").Key("APP_SLOGAN").SetValue(form.AppSlogan) cfg.Section("").Key("RUN_USER").SetValue(form.RunUser) cfg.Section("").Key("WORK_PATH").SetValue(setting.AppWorkPath) cfg.Section("").Key("RUN_MODE").SetValue("prod") |