diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-26 22:34:48 -0600 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-26 22:34:48 -0600 |
commit | 59d0e73c3507296b31c8e741b44afc7bfe1eb695 (patch) | |
tree | 79970b755e0c5309b0f05dcd45053f91500ba85b /templates/install.tmpl | |
parent | 1badb2bbccfe81303f69f8dedf57c22fb89d4b99 (diff) | |
download | gitea-59d0e73c3507296b31c8e741b44afc7bfe1eb695.tar.gz gitea-59d0e73c3507296b31c8e741b44afc7bfe1eb695.zip |
Batch mirror fix
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r-- | templates/install.tmpl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl index 2ed7e569d1..8fe678e509 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -9,14 +9,15 @@ <label class="col-md-3 control-label">Database Type: </label> <div class="col-md-8"> <select name="database" id="install-database" class="form-control"> - <option value="mysql">MySQL</option> - <option value="pgsql">PostgreSQL</option> - <option value="sqlite">SQLite3</option> + {{if .CurDbValue}}<option value="{{.CurDbValue}}">{{.CurDbValue}}</option>{{end}} + {{range .DbOptions}} + {{if not (eq $.CurDbValue .)}}<option value="{{.}}">{{.}}</option>{{end}} + {{end}} </select> </div> </div> - <div class="server-sql"> + <div class="server-sql {{if eq .CurDbValue "SQLite3"}}hide{{end}}"> <div class="form-group"> <label class="col-md-3 control-label">Host: </label> <div class="col-md-8"> @@ -49,7 +50,7 @@ </div> </div> - <div class="form-group pgsql-setting hide"> + <div class="form-group pgsql-setting {{if not (eq .CurDbValue "PostgreSQL")}}hide{{end}}"> <label class="col-md-3 control-label">SSL Mode: </label> <div class="col-md-8"> <select name="ssl_mode" class="form-control"> @@ -61,7 +62,7 @@ </div> </div> - <div class="sqlite-setting hide"> + <div class="sqlite-setting {{if not (eq .CurDbValue "SQLite3")}}hide{{end}}"> <div class="form-group"> <label class="col-md-3 control-label">Path: </label> |