diff --git a/src/main/scala/gitbucket/core/controller/SystemSettingsController.scala b/src/main/scala/gitbucket/core/controller/SystemSettingsController.scala index adc00e3..5629dec 100644 --- a/src/main/scala/gitbucket/core/controller/SystemSettingsController.scala +++ b/src/main/scala/gitbucket/core/controller/SystemSettingsController.scala @@ -231,7 +231,7 @@ }) get("/admin/system")(adminOnly { - html.system(flash.get("info")) + html.settings(flash.get("info")) }) post("/admin/system", form)(adminOnly { form => diff --git a/src/main/twirl/gitbucket/core/admin/settings.scala.html b/src/main/twirl/gitbucket/core/admin/settings.scala.html new file mode 100644 index 0000000..1cb6f32 --- /dev/null +++ b/src/main/twirl/gitbucket/core/admin/settings.scala.html @@ -0,0 +1,47 @@ +@(info: Option[Any])(implicit context: gitbucket.core.controller.Context) +@import gitbucket.core.service.OpenIDConnectService +@import gitbucket.core.util.DatabaseConfig +@gitbucket.core.html.main("System settings"){ + @gitbucket.core.admin.html.menu("system"){ + @gitbucket.core.helper.html.information(info) +
+ +
+
+ @settings_system(info) +
+
+ @settings_authentication(info) +
+
+
+
+ +
+
+ } +} + diff --git a/src/main/twirl/gitbucket/core/admin/settings_authentication.scala.html b/src/main/twirl/gitbucket/core/admin/settings_authentication.scala.html new file mode 100644 index 0000000..1910c0b --- /dev/null +++ b/src/main/twirl/gitbucket/core/admin/settings_authentication.scala.html @@ -0,0 +1,160 @@ +@(info: Option[Any])(implicit context: gitbucket.core.controller.Context) +@import gitbucket.core.service.OpenIDConnectService + + + +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ + + +
+
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + Choose the expected signature algorithm of the token response. Most IdP provides RS256 or HS256. + +
+
+
+ \ No newline at end of file diff --git a/src/main/twirl/gitbucket/core/admin/settings_system.scala.html b/src/main/twirl/gitbucket/core/admin/settings_system.scala.html new file mode 100644 index 0000000..7d787fa --- /dev/null +++ b/src/main/twirl/gitbucket/core/admin/settings_system.scala.html @@ -0,0 +1,329 @@ +@(info: Option[Any])(implicit context: gitbucket.core.controller.Context) +@import gitbucket.core.util.DatabaseConfig + + + + + + + + + + + + + + + @if(DatabaseConfig.url.startsWith("jdbc:h2:")) { + + }else{ + + } + +
PropertyValue
GITBUCKET_HOME@gitbucket.core.util.Directory.GitBucketHome
DATABASE_URL +

@gitbucket.core.util.DatabaseConfig.url

+

+ Your GitBucket is running on embedded H2 database. + Recommend to configure to use external database if you would like to use GitBucket for important purpose. +

+
@gitbucket.core.util.DatabaseConfig.url
+ + + +
+ +
+
+ + +
+
+

+ The base URL is used for redirect, notification email, git repository URL box and more. + If the base URL is empty, GitBucket generates URL from the request information. + You can use this property to adjust to URL differences between the reverse proxy and GitBucket. +

+ + + +
+ +
+ +
+ + + +
+ +
+ +
+ +
+
+ + + +
+ +
+ + +
+
+ +
+ + +
+ + + +
+ +
+ + +
+ + + +
+ +
+
+ +
+ + +
+
+
+ + + +
+ +
+ +
+ + + +
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ + + +
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ Send test mail to: + + +
+
+ + + +
+ +
+ +
+ diff --git a/src/main/twirl/gitbucket/core/admin/system.scala.html b/src/main/twirl/gitbucket/core/admin/system.scala.html deleted file mode 100644 index f4131bb..0000000 --- a/src/main/twirl/gitbucket/core/admin/system.scala.html +++ /dev/null @@ -1,514 +0,0 @@ -@(info: Option[Any])(implicit context: gitbucket.core.controller.Context) -@import gitbucket.core.service.OpenIDConnectService -@import gitbucket.core.util.DatabaseConfig -@gitbucket.core.html.main("System settings"){ - @gitbucket.core.admin.html.menu("system"){ - @gitbucket.core.helper.html.information(info) -
-
-
System settings
-
- - - - - - - - - - - - - - - @if(DatabaseConfig.url.startsWith("jdbc:h2:")) { - - }else{ - - } - -
PropertyValue
GITBUCKET_HOME@gitbucket.core.util.Directory.GitBucketHome
DATABASE_URL -

@gitbucket.core.util.DatabaseConfig.url

-

- Your GitBucket is running on embedded H2 database. - Recommend to configure to use external database if you would like to use GitBucket for important purpose. -

-
@gitbucket.core.util.DatabaseConfig.url
- - - -
- -
-
- - -
-
-

- The base URL is used for redirect, notification email, git repository URL box and more. - If the base URL is empty, GitBucket generates URL from the request information. - You can use this property to adjust to URL differences between the reverse proxy and GitBucket. -

- - - -
- -
- -
- - - -
- -
- -
- -
-
- - - -
- -
- - -
-
- -
- - -
- - - -
- -
- - -
- - - -
- -
-
- -
- - -
-
-
- - - -
- -
- -
- - - -
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- - - -
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - -
-
-
-
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - Choose the expected signature algorithm of the token response. Most IdP provides RS256 or HS256. - -
-
-
- - - -
- -
- -
- - - -
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- Send test mail to: - - -
-
- @* - - - -
- -
- -
- - -
-
- *@ -
-
-
- -
-
- } -} -