mirror of
https://github.com/go-gitea/gitea
synced 2024-08-23 18:55:09 +02:00
Show correct SSL Mode on "install page" (#25818)
This commit is contained in:
parent
44572e9243
commit
cee352bb38
|
@ -102,6 +102,7 @@ func Install(ctx *context.Context) {
|
||||||
form.DbName = setting.Database.Name
|
form.DbName = setting.Database.Name
|
||||||
form.DbPath = setting.Database.Path
|
form.DbPath = setting.Database.Path
|
||||||
form.DbSchema = setting.Database.Schema
|
form.DbSchema = setting.Database.Schema
|
||||||
|
form.SSLMode = setting.Database.SSLMode
|
||||||
|
|
||||||
curDBType := setting.Database.Type.String()
|
curDBType := setting.Database.Type.String()
|
||||||
var isCurDBTypeSupported bool
|
var isCurDBTypeSupported bool
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gt-hidden" data-db-setting-for="common-host">
|
<div class="gt-mt-4 gt-hidden" data-db-setting-for="common-host">
|
||||||
<div class="inline required field {{if .Err_DbSetting}}error{{end}}">
|
<div class="inline required field {{if .Err_DbSetting}}error{{end}}">
|
||||||
<label for="db_host">{{.locale.Tr "install.host"}}</label>
|
<label for="db_host">{{.locale.Tr "install.host"}}</label>
|
||||||
<input id="db_host" name="db_host" value="{{.db_host}}">
|
<input id="db_host" name="db_host" value="{{.db_host}}">
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gt-hidden" data-db-setting-for="postgres">
|
<div class="gt-mt-4 gt-hidden" data-db-setting-for="postgres">
|
||||||
<div class="inline required field">
|
<div class="inline required field">
|
||||||
<label>{{.locale.Tr "install.ssl_mode"}}</label>
|
<label>{{.locale.Tr "install.ssl_mode"}}</label>
|
||||||
<div class="ui selection database type dropdown">
|
<div class="ui selection database type dropdown">
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gt-hidden" data-db-setting-for="sqlite3">
|
<div class="gt-mt-4 gt-hidden" data-db-setting-for="sqlite3">
|
||||||
<div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}">
|
<div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}">
|
||||||
<label for="db_path">{{.locale.Tr "install.path"}}</label>
|
<label for="db_path">{{.locale.Tr "install.path"}}</label>
|
||||||
<input id="db_path" name="db_path" value="{{.db_path}}">
|
<input id="db_path" name="db_path" value="{{.db_path}}">
|
||||||
|
|
Loading…
Reference in a new issue