From 1f88e7238a589f4e2743202d99528792abd96b8b Mon Sep 17 00:00:00 2001 From: Simeon Keske Date: Sat, 9 May 2020 23:01:51 +0200 Subject: [PATCH] Allow to specify default theme --- README.md | 2 ++ defaults/main.yml | 3 +++ templates/gitea.ini.j2 | 2 ++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 41a970c..f0e79d7 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we * `gitea_enable_captcha`: Do you want to enable captcha's ? (true/false) * `gitea_secret_key`: Cookie secret key * `gitea_internal_token`: Internal API token +* `gitea_themes`: List of enabled themes +* `gitea_theme_default`: Default theme ### Limits diff --git a/defaults/main.yml b/defaults/main.yml index b2eff47..919797b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -64,3 +64,6 @@ gitea_oauth2_jwt_secret: ChangeMe gitea_metrics_enabled: false gitea_metrics_token: ~ + +gitea_themes: gitea,arc-green +gitea_theme_default: gitea diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index a57d626..e8412d4 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -26,6 +26,8 @@ DISABLE_HTTP_GIT = {{ gitea_disable_http_git }} [ui] ; Whether the email of the user should be shown in the Explore Users page SHOW_USER_EMAIL = {{ gitea_show_user_email }} +TMEMES = {{ gitea_themes }} +DEFAULT_THEME = {{ gitea_theme_default }} [server] ; The protocol the server listens on. One of 'http', 'https', 'unix' or 'fcgi'.