mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 08:03:42 +02:00
UI: install - database settings
This commit is contained in:
1 parent
ffd17924fd
commit
5dd3dd71a0
12 files changed
+317
-159
No files matched your search
@@ -50,6 +50,7 @@ code = Code
|
||||
install = Installation
|
||||
title = Install Steps For First-time Run
|
||||
requite_db_desc = Gogs requires MySQL, PostgreSQL or SQLite3.
|
||||
db_title = Database Settings
|
||||
db_type = Database Type
|
||||
host = Host
|
||||
user = User
|
||||
@@ -59,7 +60,8 @@ db_helper = Please use INNODB engine with utf8_general_ci charset for MySQL.
|
||||
ssl_mode = SSL Mode
|
||||
path = Path
|
||||
sqlite_helper = The file path of SQLite3 database.
|
||||
general_title = General Settings of Gogs
|
||||
|
||||
general_title = Application General Settings
|
||||
repo_path = Repository Root Path
|
||||
repo_path_helper = All Git remote repositories will be saved to this directory.
|
||||
run_user = Run User
|
||||
|
||||
@@ -581,7 +581,7 @@ func conf_locale_locale_de_de_ini() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _conf_locale_locale_en_us_ini = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\x7d\xdd\x92\xdb\x38\xb2\xe6\x3d\x9f\x82\xdd\x1b\x5e\x77\x47\x94\xe5\x98\x99\x88\x8d\x8d\x0e\xdb\x1d\xd5\xe5\xdf\x39\x2e\x57\x1d\x57\x79\x66\xcf\x3a\x1c\x1c\x4a\xa4\x24\x9e\x92\x48\x0d\x49\x95\x5a\x73\xb5\xaf\xb1\xaf\xb7\x4f\xb2\xf9\xe5\x0f\x7e\x48\xaa\x6c\xcf\xd9\xd8\x73\x53\x05\x02\x09\x20\x91\x48\x24\x32\x13\x09\x28\xdf\xed\xb2\xa2\xec\x16\xe9\xf3\xf4\x3c\xdd\xe5\x55\xbd\x29\xbb\x2e\xed\xca\xcd\xf2\xc9\xba\xe9\xfa\xb2\x48\xdf\x54\x3d\x7d\xb7\xf7\xd5\xa2\x4c\x92\x75\xb3\x2d\x09\xf4\x2d\xfd\x4b\x8a\xbc\x5b\xcf\x9b\xbc\x2d\x28\xe3\xa5\xa5\x93\xf2\xf7\xdd\xa6\x69\x01\xf4\x4a\x52\xc9\xba\xdc\xec\x50\x87\xfe\x25\x5d\xb5\xaa\xb3\xaa\xa6\xcf\x1b\x4a\xa5\xef\xea\xa4\x6b\x16\x55\xbe\xc9\x82\x02\xce\xb0\xf2\x5f\xd2\x3f\xd6\x45\x7a\xd3\x97\xbb\xf4\x59\xb7\xcd\x37\x9b\x17\x79\xc7\x55\xfa\x32\xcd\x17\x8b\x66\x5f\xf7\xcf\x9e\x4a\x81\x34\xde\xec\x7b\x6b\xfd\x6a\xdf\x4b\xde\x7e\x67\x59\x9f\x76\x49\x5b\xae\x2a\x1a\x58\x4b\x59\x1f\x35\x99\x1c\xca\x79\x57\xf5\x40\xfa\xaf\x92\x4a\xee\xcb\xb6\xab\x1a\xe0\xf3\x17\x49\x25\xbb\x7c\x05\x80\x6b\xfa\x97\xf4\xe5\x76\xb7\xc9\xb9\xc2\xad\x26\x93\x4d\x5e\xaf\xf6\x02\xf3\x5e\x93\x49\xb2\x27\xca\xd5\x39\xd3\xec\x93\x26\x93\x72\x9b\x57\x1b\xd0\xe7\x09\x12\xd4\x6e\xd7\x1d\x1a\xa6\xe2\xb5\x26\x09\xc7\xac\x3f\xee\x4a\x46\xf1\xc9\x2d\xa5\x92\x45\xbe\xeb\x17\xeb\x9c\x72\x2e\x24\x95\x10\xd0\xae\x21\x5c\x9b\xf6\xc8\x70\xf6\x91\x34\xed\x2a\xaf\xab\x7f\xe4\xbd\xe0\x7f\x15\x7c\x26\xdb\xaa\x6d\x1b\x0c\xfd\x92\x13\x49\x5d\x1e\x32\xb4\x43\x39\x1f\xca\x43\xd8\x0a\x4a\xb6\xd5\xaa\x95\x51\xa2\xf0\x92\xbf\xd0\x0a\xca\x96\x4d\x7b\xa7\x05\xaf\x91\x1c\x54\x25\x24\xb4\x34\xee\x3f\xaf\x89\x2e\x5a\x7a\xc9\x1f\x11\x40\x97\xe4\xc5\xb6\xaa\xb3\x5d\x5e\x97\xa0\xd1\x39\xbe\x88\x2e\xf4\x95\xe8\x74\x67\x5d\xd9\xf7\x55\xbd\xea\x50\x2c\x59\xe9\x8d\x66\x25\x41\x99\xcb\x03\x3e\x5d\xb6\x2c\xcb\x42\x30\xea\xd2\xd7\x94\x4e\x76\xfb\xcd\x86\xc6\xfe\xf7\x7d\xd9\xf5\x80\xbf\xa6\x6f\x1a\x85\x7c\x27\x55\xd7\x51\x82\xb2\xdf\x71\x22\xa1\x09\xa8\x17\x8c\xd2\x05\x27\x92\xe4\x73\x57\xe6\xed\x62\xfd\x25\x91\xff\xdc\x23\x12\xb3\xd9\xec\xe4\xd4\x80\x1d\x94\x15\xa4\x07\xeb\x20\x59\x34\x05\x3e\x2e\xe8\x1f\x35\x5d\xd5\x5d\x4f\x2c\xfd\x25\xd1\x04\xc0\x24\x25\x64\xec\xab\x7e\x53\xfa\x4c\x5e\x1f\x1d\xe6\x21\x7d\x5d\xb5\x5d\xff\xa4\xaf\x88\xe5\x3e\xee\xeb\x04\xe3\x23\x76\xce\x8a\xb9\xad\xf2\x37\x0d\x51\x87\xb3\x5b\x1a\xdf\xe5\xf1\xe6\x5f\xdf\x9f\xa5\xd7\xb4\xd4\x57\x6d\x49\xe9\x94\xda\xa0\x7f\x54\xe7\x4f\xb3\x84\x6a\x29\x1b\xbe\xcc\xfb\x7c\x9e\x77\x65\xca\xcc\x08\xc9\xc0\x52\xa0\xeb\xa3\x21\x4d\xb1\x32\xb5\xa1\x0b\xc0\xb5\xf1\x01\xab\x80\xf2\x21\x18\xb8\xf2\xf5\xa6\x44\x3e\x35\x95\xbe\xfb\xf0\xe1\xea\xe5\x6f\x69\x59\xaf\xaa\xba\x4c\x0f\x55\xbf\x4e\xf7\xfd\xf2\xbf\x67\xab\xb2\x2e\x5b\x92\x13\x8b\x2a\x25\xe6\x6f\x69\x9e\x53\xe2\x40\xc1\x7f\x96\x74\xdd\x26\xdb\x0a\x05\x6f\x6e\xde\xa7\x97\xa0\xe2\x2e\xef\xd7\x8c\x48\xbf\x4e\xba\xbf\x6f\x40\x05\xd7\xe1\xed\xba\x4c\x97\x15\x91\x90\x81\x9a\xa5\x0d\x39\x2d\x14\xc7\x59\x62\x1d\x1a\xa9\xdf\xc8\xb7\x63\x2b\xd4\x02\x2d\x79\xae\x33\xed\xcc\x4f\x75\xfa\xb1\x69\x7a\xe9\xdc\x01\xf8\xfe\xcf\x69\xce\x20\x57\xdb\x72\xdb\xd0\xfa\x72\xec\x52\xd1\x94\x1c\x2a\x2a\x9c\x97\x69\x97\xdf\x13\xc7\xf6\x4d\xda\xaf\xab\x2e\x2d\x68\xba\x16\x68\x98\x98\x6b\x4f\x12\x4d\xa8\x4e\x53\x2c\x94\xb7\xbc\x78\x88\x0c\xb5\xdd\xd3\x64\xad\xa9\x31\xc8\x4b\x08\x77\x6a\x72\x0a\xcf\x34\x27\x41\x4b\xed\xf0\xa8\x68\xee\x1b\x92\x4e\x90\x1f\x2f\x39\xa1\xdf\x61\xfb\x84\x55\xbe\x5c\x12\x56\x1d\x11\xfd\x6d\xba\xd8\x34\x34\x63\x9f\x3e\xbe\xa7\xca\xeb\xbe\xdf\x65\xbb\xa6\x65\x2e\xb9\xbd\xbd\x26\x06\x6b\x7b\x9f\x1b\xcc\x3c\x60\xea\xfd\x76\x4e\x5f\x87\x75\x45\xcb\x88\x36\xa4\x4d\xb5\x10\xe1\xc5\xa4\xd8\x40\x44\xd7\x69\x53\xcf\x12\x6c\x56\xfb\x96\xe5\x42\x00\x45\x5d\x5a\xc9\x09\xf4\x80\xc2\x53\xfc\xb9\xf1\x58\xf2\x70\x3b\xda\xc7\x0e\xeb\x92\xb6\x2b\x1a\x6a\xc9\xf2\x78\x26\xf2\xd9\xcd\xbb\x48\x69\x9a\x76\xde\x01\xfd\xf4\xff\x74\xb5\x43\xef\xf9\xe6\xe7\xa4\xdb\xd2\xb8\x74\x4d\xdc\x5c\xd2\x68\x79\x61\xa0\x1a\x4d\x88\xce\xd4\x4d\x59\x17\x94\x50\x99\xaf\x65\xc1\x7a\xd1\x72\xb7\x6c\xea\xa6\xaf\x96\x47\x87\xc5\x07\x7c\xda\x80\xa7\x70\xb0\x5d\x2d\x5b\x34\xf5\xb2\x6a\xb7\xc0\xbc\xce\xe7\x54\xd9\x36\x39\x92\x2d\x5c\x62\x82\x98\xc6\x28\x9d\x78\xd0\x4b\x8c\x34\xec\x4a\xa5\xb1\x61\x21\xd2\x78\x24\x74\x05\x68\xb8\xcd\x99\x20\x1f\x8b\x04\x45\x31\x2c\x53\xdc\x3c\x8c\xd4\x1e\x6c\x95\x2a\x0d\xb3\x55\xc3\x12\xde\xa4\x1f\x2f\xc3\x9e\xc4\x76\xb6\xaa\xfa\x6c\x09\xda\xa2\xcd\xd7\xa8\x8b\xf5\x43\x25\xe9\x63\x2a\x7a\x9c\x2e\x9a\x2d\xed\x40\xc5\x2f\xe9\xa3\x7b\x95\x09\x7f\x02\x11\xb2\xfc\x9e\x60\x99\x04\xcf\xd3\x7f\x6b\xf6\x2d\xad\x48\x11\x49\xa6\x06\x14\x0d\xad\x4c\x82\x4c\xbb\xfd\x8e\xf9\x5a\x05\xc6\x59\xba\x13\xc0\xa2\x39\xd4\x9b\x26\xa7\x05\x4b\xeb\xae\x59\x12\x01\xa1\xc4\xcc\xab\x3a\xa7\x35\x66\xad\x2c\xdb\x66\x9b\x3e\xea\xce\xd2\x0f\x57\xb7\x0c\xb8\x6a\xe6\xfb\x6a\x53\x18\xc0\x8c\x46\x78\x9f\x6f\xaa\x02\xf2\x5a\xb7\xb2\x50\x70\x5a\x56\x25\xb8\x2c\x9a\x16\x42\x81\x47\x63\x15\x4f\x48\xa3\x1Line truncated
|
||||
var _conf_locale_locale_en_us_ini = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\x7d\xdd\x72\xdc\x38\xb2\xe6\x3d\x9f\x82\xdd\x1b\x5e\x77\x47\xc8\xe5\x98\x99\x88\x8d\x8d\x0e\xdb\x1d\x6a\xf9\x77\x8e\x65\xe9\x58\xf2\xcc\x9e\x75\x38\x38\xac\x22\x55\xc5\x23\x16\x59\x43\xb2\x54\xad\xb9\xda\xd7\xd8\xd7\xdb\x27\xd9\xfc\xf2\x07\x3f\x24\x4b\xb6\xe7\x6c\xec\xb9\x91\x40\x20\x01\x24\x12\x89\x44\x66\x22\x81\xca\x77\xbb\xac\x28\xfb\x55\xfa\x3c\x3d\x4d\x77\x79\xd5\xd4\x65\xdf\xa7\x7d\x59\xdf\x3c\xd9\xb4\xfd\x50\x16\xe9\x9b\x6a\xa0\xef\xee\xae\x5a\x95\x49\xb2\x69\xb7\x25\x81\xbe\xa5\x7f\x49\x91\xf7\x9b\x65\x9b\x77\x05\x65\xbc\xb4\x74\x52\xfe\xbe\xab\xdb\x0e\x40\xaf\x24\x95\x6c\xca\x7a\x87\x3a\xf4\x2f\xe9\xab\x75\x93\x55\x0d\x7d\x5e\x51\x2a\x7d\xd7\x24\x7d\xbb\xaa\xf2\x3a\x0b\x0a\x38\xc3\xca\x7f\x49\xff\xd8\x14\xe9\xd5\x50\xee\xd2\x67\xfd\x36\xaf\xeb\x17\x79\xcf\x55\x86\x32\xcd\x57\xab\x76\xdf\x0c\xcf\x9e\x4a\x81\x34\xde\xee\x07\x6b\xfd\x62\x3f\x48\xde\x7e\x67\x59\x9f\x76\x49\x57\xae\x2b\x1a\x58\x47\x59\x1f\x35\x99\x1c\xca\x65\x5f\x0d\x40\xfa\xaf\x92\x4a\xee\xca\xae\xaf\x5a\xe0\xf3\x17\x49\x25\xbb\x7c\x0d\x80\x4b\xfa\x97\x0c\xe5\x76\x57\xe7\x5c\xe1\x5a\x93\x49\x9d\x37\xeb\xbd\xc0\xbc\xd7\x64\x92\xec\x89\x72\x4d\xce\x34\xfb\xa4\xc9\xa4\xdc\xe6\x55\x0d\xfa\x3c\x41\x82\xda\xed\xfb\x43\xcb\x54\xbc\xd4\x24\xe1\x98\x0d\xf7\xbb\x92\x51\x7c\x72\x4d\xa9\x64\x95\xef\x86\xd5\x26\xa7\x9c\x33\x49\x25\x04\xb4\x6b\x09\xd7\xb6\xbb\x67\x38\xfb\x48\xda\x6e\x9d\x37\xd5\x3f\xf2\x41\xf0\xbf\x08\x3e\x93\x6d\xd5\x75\x2d\x86\x7e\xce\x89\xa4\x29\x0f\x19\xda\xa1\x9c\x0f\xe5\x21\x6c\x05\x25\xdb\x6a\xdd\xc9\x28\x51\x78\xce\x5f\x68\x05\x65\x37\x6d\x77\xab\x05\xaf\x91\x1c\x55\x25\x24\xb4\x34\xee\x3f\x6f\x88\x2e\x5a\x7a\xce\x1f\x11\x40\x9f\xe4\xc5\xb6\x6a\xb2\x5d\xde\x94\xa0\xd1\x29\xbe\x88\x2e\xf4\x95\xe8\x74\x67\x7d\x39\x0c\x55\xb3\xee\x51\x2c\x59\xe9\x95\x66\x25\x41\x99\xcb\x03\x3e\x7d\x76\x53\x96\x85\x60\xd4\xa7\xaf\x29\x9d\xec\xf6\x75\x4d\x63\xff\xfb\xbe\xec\x07\xc0\x5f\xd2\x37\x8d\x42\xbe\x93\xaa\xef\x29\x41\xd9\xef\x38\x91\xd0\x04\x34\x2b\x46\xe9\x8c\x13\x49\xf2\xb9\x2f\xf3\x6e\xb5\xf9\x92\xc8\x7f\xee\x11\x89\xc5\x62\x71\x74\x6a\xc0\x0e\xca\x0a\xd2\x83\x75\x90\xac\xda\x02\x1f\x67\xf4\x8f\x9a\xae\x9a\x7e\x20\x96\xfe\x92\x68\x02\x60\x92\x12\x32\x0e\xd5\x50\x97\x3e\x93\xd7\x47\x8f\x79\x48\x5f\x57\x5d\x3f\x3c\x19\x2a\x62\xb9\x8f\xfb\x26\xc1\xf8\x88\x9d\xb3\x62\x69\xab\xfc\x4d\x4b\xd4\xe1\xec\x8e\xc6\x77\x7e\x7f\xf5\xaf\xef\x4f\xd2\x4b\x5a\xea\xeb\xae\xa4\x74\x4a\x6d\xd0\x3f\xaa\xf3\xa7\x45\x42\xb5\xac\xa7\x97\xf9\x90\x2f\xf3\xbe\xf4\x64\x45\xa1\xf0\xa8\x2b\x63\x4e\x85\xd8\x60\x11\xd1\x0f\xd1\x78\xe7\xf8\x9c\xda\xd0\xd5\xe1\xda\xf8\x80\x25\x42\xf9\x90\x1a\x5c\xf9\xb2\x2e\x91\x4f\x4d\xa5\xef\x3e\x7c\xb8\x78\xf9\x5b\x5a\x36\xeb\xaa\x29\xd3\x43\x35\x6c\xd2\xfd\x70\xf3\xdf\xb3\x75\xd9\x94\x1d\x09\x91\x55\x95\xd2\xca\xe8\x88\x09\x52\x62\x4f\x19\xdc\x22\xe9\xfb\x3a\xdb\x0a\x79\xaf\xae\xde\xa7\xe7\x20\xf1\x2e\x1f\x36\x8c\xc8\xb0\x49\xfa\xbf\xd7\x20\x91\xeb\xf0\x7a\x53\xa6\x37\x15\x8d\x9a\x81\xda\x1b\xa3\x47\x5a\x28\x8e\x8b\x24\xb1\x1e\x8d\x3c\xa7\xbb\x5d\x5d\xad\x64\xc9\xbd\x91\x32\x4f\x29\x70\x43\xa6\x3d\x7a\x66\x48\x3f\xb6\xed\x20\x18\x38\x00\x8f\xc4\x29\xcd\x2a\x24\x6f\x57\x6e\x5b\x5a\x81\x8e\xa1\x2a\x9a\xb4\x43\x45\x85\xcb\x32\xed\xf3\x3b\xe2\xe9\xa1\x4d\x87\x4d\xd5\xa7\x05\x4d\xe8\x0a\x0d\x13\xfb\xed\x49\xe6\x09\xe9\x89\x09\x84\xfc\x96\x17\x8f\x93\xa1\xb6\x7b\x9a\xb1\x0d\x35\x06\x89\x0a\xf1\x4f\x4d\xce\xe1\x99\xe6\x24\x8a\xa9\x1d\xe6\x21\xe2\x8e\x96\xe4\x17\x24\xcc\x4b\x4e\xe8\x77\xd8\x3e\x61\x95\xdf\xdc\x10\x56\x3d\x51\xfe\x6d\xba\xaa\x5b\x9a\xb6\x4f\x1f\xdf\x53\xe5\xcd\x30\xec\xb2\x5d\xdb\x31\xab\x5c\x5f\x5f\x12\x0b\x76\x83\xcf\x0d\xa6\x1f\x30\xcd\x7e\xbb\xa4\xaf\xc3\xa6\xa2\x85\x96\x07\xb4\x66\x52\xd4\x10\xe2\x4d\xda\x36\x8b\x04\xdb\xd9\xbe\xab\x47\x33\x42\x5d\x5a\xc9\x11\xf4\x80\xc2\x53\xfc\xb9\xf2\x58\xf2\x70\x7b\xda\xe9\x0e\x9b\x92\x36\x34\x1a\x6a\xc9\x12\x7b\x21\x12\xdc\xcd\xbd\xc8\x71\x9a\x6e\xde\x23\xdd\xb4\xa7\x3f\x5d\xec\xd0\x7b\x5e\xff\x9c\xf4\x5b\x1a\x97\x2e\x8c\xab\x73\x1a\x2d\xaf\x0e\x54\xa3\x09\xd1\x99\xba\x2a\x9b\x82\x12\xba\x2b\x68\x59\xb0\x68\xb4\xdc\xad\x9d\xa6\x1d\xaa\x9b\x7b\x87\xc5\x07\x7c\xda\x80\xe7\x70\xb0\x7d\x2f\x5b\xb5\xcd\x4d\xd5\x6d\x81\x79\x93\x2f\xa9\xb2\x6d\x83\x24\x7d\xb8\xc4\x44\x35\x8d\x51\x3a\xf1\xa0\xe7\x18\x69\xd8\x95\xca\x6b\xb7\x0e\x58\x5e\x4f\xc4\xb2\x00\x8d\x37\x42\x13\xf5\x53\xb9\xa0\x28\x86\x65\x8a\x9b\x87\x91\xda\xa3\xcd\x54\xe5\x65\xb6\x6e\x79\x0f\x30\xf9\x08\x86\xa5\x4d\xbb\x1f\xb2\x75\x35\x64\x37\xa0\x2d\xda\x7c\x8d\xba\x58\x3f\x54\x92\x3e\xa6\xa2\xc7\xe9\xaa\xdd\xd2\x1e\x55\xfc\x92\x3e\xba\x53\xc1\xf0\x27\x10\x21\xcb\xef\x08\x96\x49\xf0\x3c\xfd\xb7\x76\xdf\xd1\x8a\x14\xb9\x64\x8a\x42\xd1\xd2\xca\x24\xc8\xb4\xdf\xef\x98\xaf\x55\x6a\x9c\xa4\x3b\x01\x2c\xda\x43\x53\xb7\x39\x2d\x58\x5a\x77\xed\x0d\x11\x10\x6a\xce\xb2\x6a\x72\x5a\x63\xd6\xca\x4d\xd7\x6e\xd3\x47\xfd\x49\xfa\xe1\xe2\x9a\x01\xd7\xed\x72\x5f\xd5\x85\x01\x2c\x68\x84\x77\x79\x5d\x15\x90\xe8\xba\xd9\x85\xd2\xd3\xb2\x2a\xc1\x65\xd5\x76\x10\x0Line truncated
|
||||
|
||||
func conf_locale_locale_en_us_ini_bytes() ([]byte, error) {
|
||||
return bindata_read(
|
||||
@@ -596,7 +596,7 @@ func conf_locale_locale_en_us_ini() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindata_file_info{name: "conf/locale/locale_en-US.ini", size: 31788, mode: os.FileMode(420), modTime: time.Unix(1436006552, 0)}
|
||||
info := bindata_file_info{name: "conf/locale/locale_en-US.ini", size: 31822, mode: os.FileMode(420), modTime: time.Unix(1436286541, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
@font-face{font-family:octicons;src:url(../fonts/octicons.eot?#iefix&v=345f8bad9c5003db196d08f05e7f030fd2a32ff6) format('embedded-opentype'),url(../fonts/octicons.woff?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6) format('woff'),url(../fonts/octicons.ttf?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6) format('truetype'),url(../fonts/octicons.svg?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6#octicons) format('svg');font-weight:400;font-style:normal}.mega-octicon,.octicon{font:normal normal normal 16px/1 octicons;display:inline-block;text-decoration:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mega-octicon{font-size:32px}.octicon-alert:before{content:'\f02d'}.octicon-alignment-align:before{content:'\f08a'}.octicon-alignment-aligned-to:before{content:'\f08e'}.octicon-alignment-unalign:before{content:'\f08b'}.octicon-arrow-down:before{content:'\f03f'}.octicon-arrow-left:before{content:'\f040'}.octicon-arrow-right:before{content:'\f03e'}.octicon-arrow-small-down:before{content:'\f0a0'}.octicon-arrow-small-left:before{content:'\f0a1'}.octicon-arrow-small-right:before{content:'\f071'}.octicon-arrow-small-up:before{content:'\f09f'}.octicon-arrow-up:before{content:'\f03d'}.octicon-beer:before{content:'\f069'}.octicon-book:before{content:'\f007'}.octicon-bookmark:before{content:'\f07b'}.octicon-briefcase:before{content:'\f0d3'}.octicon-broadcast:before{content:'\f048'}.octicon-browser:before{content:'\f0c5'}.octicon-bug:before{content:'\f091'}.octicon-calendar:before{content:'\f068'}.octicon-check:before{content:'\f03a'}.octicon-checklist:before{content:'\f076'}.octicon-chevron-down:before{content:'\f0a3'}.octicon-chevron-left:before{content:'\f0a4'}.octicon-chevron-right:before{content:'\f078'}.octicon-chevron-up:before{content:'\f0a2'}.octicon-circle-slash:before{content:'\f084'}.octicon-circuit-board:before{content:'\f0d6'}.octicon-clippy:before{content:'\f035'}.octicon-clock:before{content:'\f046'}.octicon-cloud-download:before{content:'\f00b'}.octicon-cloud-upload:before{content:'\f00c'}.octicon-code:before{content:'\f05f'}.octicon-color-mode:before{content:'\f065'}.octicon-comment-add:before,.octicon-comment:before{content:'\f02b'}.octicon-comment-discussion:before{content:'\f04f'}.octicon-credit-card:before{content:'\f045'}.octicon-dash:before{content:'\f0ca'}.octicon-dashboard:before{content:'\f07d'}.octicon-database:before{content:'\f096'}.octicon-device-camera:before{content:'\f056'}.octicon-device-camera-video:before{content:'\f057'}.octicon-device-desktop:before{content:'\f27c'}.octicon-device-mobile:before{content:'\f038'}.octicon-diff:before{content:'\f04d'}.octicon-diff-added:before{content:'\f06b'}.octicon-diff-ignored:before{content:'\f099'}.octicon-diff-modified:before{content:'\f06d'}.octicon-diff-removed:before{content:'\f06c'}.octicon-diff-renamed:before{content:'\f06e'}.octicon-ellipsis:before{content:'\f09a'}.octicon-eye-unwatch:before,.octicon-eye-watch:before,.octicon-eye:before{content:'\f04e'}.octicon-file-binary:before{content:'\f094'}.octicon-file-code:before{content:'\f010'}.octicon-file-directory:before{content:'\f016'}.octicon-file-media:before{content:'\f012'}.octicon-file-pdf:before{content:'\f014'}.octicon-file-submodule:before{content:'\f017'}.octicon-file-symlink-directory:before{content:'\f0b1'}.octicon-file-symlink-file:before{content:'\f0b0'}.octicon-file-text:before{content:'\f011'}.octicon-file-zip:before{content:'\f013'}.octicon-flame:before{content:'\f0d2'}.octicon-fold:before{content:'\f0cc'}.octicon-gear:before{content:'\f02f'}.octicon-gift:before{content:'\f042'}.octicon-gist:before{content:'\f00e'}.octicon-gist-secret:before{content:'\f08c'}.octicon-git-branch-create:before,.octicon-git-branch-delete:before,.octicon-git-branch:before{content:'\f020'}.octicon-git-commit:before{content:'\f01f'}.octicon-git-compare:before{content:'\f0ac'}.octicon-git-merge:before{content:'\f023'}.octicon-git-pull-request-abandoned:before,.octicon-git-pull-request:before{content:'\f009'}.octicon-globe:before{content:'\f0b6'}.octicon-graph:before{content:'\f043'}.octicon-heart:before{content:'\2665'}.octicon-history:before{content:'\f07e'}.octicon-home:before{content:'\f08d'}.octicon-horizontal-rule:before{content:'\f070'}.octicon-hourglass:before{content:'\f09e'}.octicon-hubot:before{content:'\f09d'}.octicon-inbox:before{content:'\f0cf'}.octicon-info:before{content:'\f059'}.octicon-issue-closed:before{content:'\f028'}.octicon-issue-opened:before{content:'\f026'}.octicon-issue-reopened:before{content:'\f027'}.octicon-jersey:before{content:'\f019'}.octicon-jump-down:before{content:'\f072'}.octicon-jump-left:before{content:'\f0a5'}.octicon-jump-right:before{content:'\f0a6'}.octicon-jump-up:before{content:'\f073'}.octicon-key:before{content:'\f049'}.octicon-keyboard:before{content:'\f00d'}.octicon-law:before{content:'\f0d8'}.octicon-light-bulb:before{content:'\f000'}.ocLine truncated
|
||||
@font-face{font-family:octicons;src:url(../fonts/octicons.eot?#iefix&v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('embedded-opentype'),url(../fonts/octicons.woff?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('woff'),url(../fonts/octicons.ttf?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('truetype'),url(../fonts/octicons.svg?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6#octicons)format('svg');font-weight:400;font-style:normal}.mega-octicon,.octicon{font:normal normal normal 16px/1 octicons;display:inline-block;text-decoration:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mega-octicon{font-size:32px}.octicon-alert:before{content:'\f02d'}.octicon-alignment-align:before{content:'\f08a'}.octicon-alignment-aligned-to:before{content:'\f08e'}.octicon-alignment-unalign:before{content:'\f08b'}.octicon-arrow-down:before{content:'\f03f'}.octicon-arrow-left:before{content:'\f040'}.octicon-arrow-right:before{content:'\f03e'}.octicon-arrow-small-down:before{content:'\f0a0'}.octicon-arrow-small-left:before{content:'\f0a1'}.octicon-arrow-small-right:before{content:'\f071'}.octicon-arrow-small-up:before{content:'\f09f'}.octicon-arrow-up:before{content:'\f03d'}.octicon-beer:before{content:'\f069'}.octicon-book:before{content:'\f007'}.octicon-bookmark:before{content:'\f07b'}.octicon-briefcase:before{content:'\f0d3'}.octicon-broadcast:before{content:'\f048'}.octicon-browser:before{content:'\f0c5'}.octicon-bug:before{content:'\f091'}.octicon-calendar:before{content:'\f068'}.octicon-check:before{content:'\f03a'}.octicon-checklist:before{content:'\f076'}.octicon-chevron-down:before{content:'\f0a3'}.octicon-chevron-left:before{content:'\f0a4'}.octicon-chevron-right:before{content:'\f078'}.octicon-chevron-up:before{content:'\f0a2'}.octicon-circle-slash:before{content:'\f084'}.octicon-circuit-board:before{content:'\f0d6'}.octicon-clippy:before{content:'\f035'}.octicon-clock:before{content:'\f046'}.octicon-cloud-download:before{content:'\f00b'}.octicon-cloud-upload:before{content:'\f00c'}.octicon-code:before{content:'\f05f'}.octicon-color-mode:before{content:'\f065'}.octicon-comment-add:before,.octicon-comment:before{content:'\f02b'}.octicon-comment-discussion:before{content:'\f04f'}.octicon-credit-card:before{content:'\f045'}.octicon-dash:before{content:'\f0ca'}.octicon-dashboard:before{content:'\f07d'}.octicon-database:before{content:'\f096'}.octicon-device-camera:before{content:'\f056'}.octicon-device-camera-video:before{content:'\f057'}.octicon-device-desktop:before{content:'\f27c'}.octicon-device-mobile:before{content:'\f038'}.octicon-diff:before{content:'\f04d'}.octicon-diff-added:before{content:'\f06b'}.octicon-diff-ignored:before{content:'\f099'}.octicon-diff-modified:before{content:'\f06d'}.octicon-diff-removed:before{content:'\f06c'}.octicon-diff-renamed:before{content:'\f06e'}.octicon-ellipsis:before{content:'\f09a'}.octicon-eye-unwatch:before,.octicon-eye-watch:before,.octicon-eye:before{content:'\f04e'}.octicon-file-binary:before{content:'\f094'}.octicon-file-code:before{content:'\f010'}.octicon-file-directory:before{content:'\f016'}.octicon-file-media:before{content:'\f012'}.octicon-file-pdf:before{content:'\f014'}.octicon-file-submodule:before{content:'\f017'}.octicon-file-symlink-directory:before{content:'\f0b1'}.octicon-file-symlink-file:before{content:'\f0b0'}.octicon-file-text:before{content:'\f011'}.octicon-file-zip:before{content:'\f013'}.octicon-flame:before{content:'\f0d2'}.octicon-fold:before{content:'\f0cc'}.octicon-gear:before{content:'\f02f'}.octicon-gift:before{content:'\f042'}.octicon-gist:before{content:'\f00e'}.octicon-gist-secret:before{content:'\f08c'}.octicon-git-branch-create:before,.octicon-git-branch-delete:before,.octicon-git-branch:before{content:'\f020'}.octicon-git-commit:before{content:'\f01f'}.octicon-git-compare:before{content:'\f0ac'}.octicon-git-merge:before{content:'\f023'}.octicon-git-pull-request-abandoned:before,.octicon-git-pull-request:before{content:'\f009'}.octicon-globe:before{content:'\f0b6'}.octicon-graph:before{content:'\f043'}.octicon-heart:before{content:'\2665'}.octicon-history:before{content:'\f07e'}.octicon-home:before{content:'\f08d'}.octicon-horizontal-rule:before{content:'\f070'}.octicon-hourglass:before{content:'\f09e'}.octicon-hubot:before{content:'\f09d'}.octicon-inbox:before{content:'\f0cf'}.octicon-info:before{content:'\f059'}.octicon-issue-closed:before{content:'\f028'}.octicon-issue-opened:before{content:'\f026'}.octicon-issue-reopened:before{content:'\f027'}.octicon-jersey:before{content:'\f019'}.octicon-jump-down:before{content:'\f072'}.octicon-jump-left:before{content:'\f0a5'}.octicon-jump-right:before{content:'\f0a6'}.octicon-jump-up:before{content:'\f073'}.octicon-key:before{content:'\f049'}.octicon-keyboard:before{content:'\f00d'}.octicon-law:before{content:'\f0d8'}.octicon-light-bulb:before{content:'\f000'}.octicoLine truncated
|
||||
+39
-2
@@ -1,6 +1,43 @@
|
||||
function initInstall() {
|
||||
if ($('.install').length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Database type change detection.
|
||||
$("#db_type").change(function () {
|
||||
var db_type = $('#db_type').val();
|
||||
if (db_type === "SQLite3") {
|
||||
$('#sql_settings').hide();
|
||||
$('#pgsql_settings').hide();
|
||||
$('#sqlite_settings').show();
|
||||
return;
|
||||
}
|
||||
|
||||
var mysql_default = '127.0.0.1:3306';
|
||||
var postgres_default = '127.0.0.1:5432';
|
||||
|
||||
$('#sqlite_settings').hide();
|
||||
$('#sql_settings').show();
|
||||
if (db_type === "PostgreSQL") {
|
||||
$('#pgsql_settings').show();
|
||||
if ($('#db_host').val() == mysql_default) {
|
||||
$('#db_host').val(postgres_default);
|
||||
}
|
||||
} else {
|
||||
$('#pgsql_settings').hide();
|
||||
if ($('#db_host').val() == postgres_default) {
|
||||
$('#db_host').val(mysql_default);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
// Semantic UI modules.
|
||||
$('.dropdown').dropdown({
|
||||
// Semantic UI modules.
|
||||
$('.dropdown').dropdown();
|
||||
$('.slide.up.dropdown').dropdown({
|
||||
transition: 'slide up'
|
||||
});
|
||||
|
||||
initInstall();
|
||||
});
|
||||
@@ -62,6 +62,11 @@ footer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.generate-img(16);
|
||||
.generate-img(@n, @i: 1) when (@i =< @n) {
|
||||
.img-@{i} {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
.form {
|
||||
.help {
|
||||
color: #999999;
|
||||
padding-top: .6em;
|
||||
padding-bottom: .6em;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
.install {
|
||||
padding-top: 45px;
|
||||
padding-bottom: @footer-margin * 3;
|
||||
.attached.header {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
form {
|
||||
label {
|
||||
text-align: right;
|
||||
width: 40% !important;
|
||||
}
|
||||
input {
|
||||
width: 35% !important;
|
||||
}
|
||||
.field {
|
||||
text-align: left;
|
||||
.help {
|
||||
margin-left: 41%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
@import "_octicons";
|
||||
@import "_base";
|
||||
@import "_home";
|
||||
@import "_home";
|
||||
@import "_install";
|
||||
@import "_form";
|
||||
@@ -11,7 +11,7 @@
|
||||
<a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i><span class="sr-only">Google Plus</span></a>
|
||||
<a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a>
|
||||
{{end}}
|
||||
<div class="ui language bottom pointing dropdown link item">
|
||||
<div class="ui language bottom pointing slide up dropdown link item">
|
||||
<i class="world icon"></i>
|
||||
<div class="text">{{.LangName}}</div>
|
||||
<div class="menu">
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
<body>
|
||||
<div class="full height">
|
||||
<noscript>Please enable JavaScript in your browser!</noscript>
|
||||
{{if not .PageIsInstall}}
|
||||
<div class="following bar light">
|
||||
<div class="ui page grid">
|
||||
<div class="column">
|
||||
@@ -58,3 +59,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
+76
-151
@@ -1,155 +1,80 @@
|
||||
{{template "ng/base/head" .}}
|
||||
<div id="setting-wrapper" class="main-wrapper">
|
||||
<div class="container clear">
|
||||
<div class="setting-content">
|
||||
{{template "ng/base/alert" .}}
|
||||
<div id="setting-content">
|
||||
<div class="panel panel-radius">
|
||||
<div class="panel-header">
|
||||
<strong>{{.i18n.Tr "install.title"}}</strong>
|
||||
</div>
|
||||
<form class="form form-align panel-body" id="install-form" action="{{AppSubUrl}}/install" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.requite_db_desc"}}</div>
|
||||
<div class="field">
|
||||
<label class="req">{{.i18n.Tr "install.db_type"}}</label>
|
||||
<select name="db_type" id="install-database" class="form-control">
|
||||
{{range .DbOptions}}
|
||||
<option value="{{.}}"{{if eq $.CurDbOption .}}selected{{end}}>{{.}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</div>
|
||||
{{template "base/head" .}}
|
||||
<div class="install">
|
||||
<div class="ui middle very relaxed page grid">
|
||||
<div class="sixteen wide center aligned centered column">
|
||||
<h3 class="ui top attached header">
|
||||
{{.i18n.Tr "install.title"}}
|
||||
</h3>
|
||||
<div class="ui attached segment">
|
||||
<form class="ui form" action="{{AppSubUrl}}/install" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
|
||||
<div class="server-sql {{if eq .CurDbOption "SQLite3"}}hide{{end}}">
|
||||
<div class="field">
|
||||
<label class="req" for="db_host">{{.i18n.Tr "install.host"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbHost}}ipt-error{{end}}" id="db_host" name="db_host" value="{{.db_host}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="db_user">{{.i18n.Tr "install.user"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbUser}}ipt-error{{end}}" id="db_user" name="db_user" value="{{.db_user}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="db_passwd">{{.i18n.Tr "install.password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbPasswd}}ipt-error{{end}}" id="db_passwd" name="db_passwd" type="password" value="{{.db_passwd}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="db_name">{{.i18n.Tr "install.db_name"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbName}}ipt-error{{end}}" id="db_name" name="db_name" value="{{.db_name}}" />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.db_helper"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Dtabase Settings -->
|
||||
<h4 class="ui dividing header">{{.i18n.Tr "install.db_title"}}</h4>
|
||||
<p>{{.i18n.Tr "install.requite_db_desc"}}</p>
|
||||
<div class="inline required field">
|
||||
<label>{{.i18n.Tr "install.db_type"}}</label>
|
||||
<div class="ui selection database type dropdown">
|
||||
<input type="hidden" id="db_type" name="db_type" value="{{.CurDbOption}}">
|
||||
<div class="default text">{{.CurDbOption}}</div>
|
||||
<i class="dropdown icon"></i>
|
||||
<div class="menu">
|
||||
{{range .DbOptions}}
|
||||
<div class="item" data-value="{{.}}">{{.}}</div>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field pgsql-setting {{if not (eq .CurDbOption "PostgreSQL")}}hide{{end}}">
|
||||
<label class="req">{{.i18n.Tr "install.ssl_mode"}}</label>
|
||||
<select name="ssl_mode" class="form-control">
|
||||
<option value="disable">Disable</option>
|
||||
<option value="require">Require</option>
|
||||
<option value="verify-full">Verify Full</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="field sqlite-setting {{if not (eq .CurDbOption "SQLite3")}}hide{{end}}">
|
||||
<label class="req" for="db_path">{{.i18n.Tr "install.path"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbPath}}ipt-error{{end}}" id="db_path" name="db_path" value="{{.db_path}}" />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.sqlite_helper"}}</span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.general_title"}}</div>
|
||||
<div class="field">
|
||||
<label class="req" for="repo_root_path">{{.i18n.Tr "install.repo_path"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_RepoRootPath}}ipt-error{{end}}" id="repo_root_path" name="repo_root_path" value="{{.repo_root_path}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.repo_path_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="run_user">{{.i18n.Tr "install.run_user"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_RunUser}}ipt-error{{end}}" id="run_user" name="run_user" value="{{.run_user}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.run_user_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="domain">{{.i18n.Tr "install.domain"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_Domain}}ipt-error{{end}}" id="domain" name="domain" value="{{.domain}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.domain_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="http_port">{{.i18n.Tr "install.http_port"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_HttpPort}}ipt-error{{end}}" id="http_port" name="http_port" value="{{.http_port}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.http_port_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="app_url">{{.i18n.Tr "install.app_url"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AppUrl}}ipt-error{{end}}" id="app_url" name="app_url" value="{{.app_url}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.app_url_helper"}}</span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.email_title"}}</div>
|
||||
<div class="field">
|
||||
<label for="smtp_host">{{.i18n.Tr "install.smtp_host"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_SmtpHost}}ipt-error{{end}}" id="smtp_host" name="smtp_host" value="{{.smtp_host}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="smtp_user">{{.i18n.Tr "install.mailer_user"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_SMTPEmail}}ipt-error{{end}}" id="smtp_user" name="smtp_user" value="{{.smtp_user}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="smtp_pwd">{{.i18n.Tr "install.mailer_password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_SMTPPasswd}}ipt-error{{end}}" id="smtp_pwd" name="smtp_pwd" type="password" value="{{.smtp_pwd}}" />
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.notify_title"}}</div>
|
||||
<div class="field">
|
||||
<label></label>
|
||||
<input name="register_confirm" type="checkbox" {{if .register_confirm}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "install.register_confirm"}}</strong>
|
||||
<br>
|
||||
<label></label>
|
||||
<input name="mail_notify" type="checkbox" {{if .mail_notify}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "install.mail_notify"}}</strong>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.admin_title"}}</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_name">{{.i18n.Tr "install.admin_name"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminName}}ipt-error{{end}}" id="admin_name" name="admin_name" value="{{.admin_name}}" required />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_passwd">{{.i18n.Tr "install.admin_password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminPasswd}}ipt-error{{end}}" id="admin_passwd" name="admin_passwd" type="password" value="{{.admin_passwd}}" required />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_confirm_passwd">{{.i18n.Tr "install.confirm_password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminPasswd}}ipt-error{{end}}" id="admin_confirm_passwd" name="admin_confirm_passwd" type="password" required />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_email">{{.i18n.Tr "install.admin_email"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminEmail}}ipt-error{{end}}" id="admin_email" name="admin_email" value="{{.admin_email}}" required />
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="field">
|
||||
<label></label>
|
||||
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "install.install_gogs"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="sql_settings" class="{{if eq .CurDbOption "SQLite3"}}hide{{end}}">
|
||||
<div class="inline required field">
|
||||
<label for="db_host">{{.i18n.Tr "install.host"}}</label>
|
||||
<input id="db_host" name="db_host" value="{{.db_host}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline required field">
|
||||
<label for="db_user">{{.i18n.Tr "install.user"}}</label>
|
||||
<input id="db_user" name="db_user" value="{{.db_user}}">
|
||||
</div>
|
||||
<div class="inline required field">
|
||||
<label for="db_passwd">{{.i18n.Tr "install.password"}}</label>
|
||||
<input id="db_passwd" name="db_passwd" type="password" value="{{.db_passwd}}">
|
||||
</div>
|
||||
<div class="inline required field">
|
||||
<label for="db_name">{{.i18n.Tr "install.db_name"}}</label>
|
||||
<input id="db_name" name="db_name" value="{{.db_name}}">
|
||||
<span class="help">{{.i18n.Tr "install.db_helper"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="pgsql_settings" class="{{if not (eq .CurDbOption "PostgreSQL")}}hide{{end}}">
|
||||
<div class="inline required field">
|
||||
<label>{{.i18n.Tr "install.ssl_mode"}}</label>
|
||||
<div class="ui selection database type dropdown">
|
||||
<input type="hidden" name="ssl_mode" value="disable">
|
||||
<div class="default text">disable</div>
|
||||
<i class="dropdown icon"></i>
|
||||
<div class="menu">
|
||||
<div class="item" data-value="disable">Disable</div>
|
||||
<div class="item" data-value="require">Require</div>
|
||||
<div class="item" data-value="verify-full">Verify Full</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sqlite_settings" class="{{if not (eq .CurDbOption "SQLite3")}}hide{{end}}">
|
||||
<div class="inline required field">
|
||||
<label for="db_path">{{.i18n.Tr "install.path"}}</label>
|
||||
<input id="db_path" name="db_path" value="{{.db_path}}">
|
||||
<span class="help">{{.i18n.Tr "install.sqlite_helper"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- General Settings -->
|
||||
<h4 class="ui dividing header">{{.i18n.Tr "install.general_title"}}</h4>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "ng/base/footer" .}}
|
||||
{{template "base/footer" .}}
|
||||
@@ -0,0 +1,155 @@
|
||||
{{template "ng/base/head" .}}
|
||||
<div id="setting-wrapper" class="main-wrapper">
|
||||
<div class="container clear">
|
||||
<div class="setting-content">
|
||||
{{template "ng/base/alert" .}}
|
||||
<div id="setting-content">
|
||||
<div class="panel panel-radius">
|
||||
<div class="panel-header">
|
||||
<strong>{{.i18n.Tr "install.title"}}</strong>
|
||||
</div>
|
||||
<form class="form form-align panel-body" id="install-form" action="{{AppSubUrl}}/install" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.requite_db_desc"}}</div>
|
||||
<div class="field">
|
||||
<label class="req">{{.i18n.Tr "install.db_type"}}</label>
|
||||
<select name="db_type" id="install-database" class="form-control">
|
||||
{{range .DbOptions}}
|
||||
<option value="{{.}}"{{if eq $.CurDbOption .}}selected{{end}}>{{.}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="server-sql {{if eq .CurDbOption "SQLite3"}}hide{{end}}">
|
||||
<div class="field">
|
||||
<label class="req" for="db_host">{{.i18n.Tr "install.host"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbHost}}ipt-error{{end}}" id="db_host" name="db_host" value="{{.db_host}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="db_user">{{.i18n.Tr "install.user"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbUser}}ipt-error{{end}}" id="db_user" name="db_user" value="{{.db_user}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="db_passwd">{{.i18n.Tr "install.password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbPasswd}}ipt-error{{end}}" id="db_passwd" name="db_passwd" type="password" value="{{.db_passwd}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="db_name">{{.i18n.Tr "install.db_name"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbName}}ipt-error{{end}}" id="db_name" name="db_name" value="{{.db_name}}" />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.db_helper"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field pgsql-setting {{if not (eq .CurDbOption "PostgreSQL")}}hide{{end}}">
|
||||
<label class="req">{{.i18n.Tr "install.ssl_mode"}}</label>
|
||||
<select name="ssl_mode" class="form-control">
|
||||
<option value="disable">Disable</option>
|
||||
<option value="require">Require</option>
|
||||
<option value="verify-full">Verify Full</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="field sqlite-setting {{if not (eq .CurDbOption "SQLite3")}}hide{{end}}">
|
||||
<label class="req" for="db_path">{{.i18n.Tr "install.path"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_DbPath}}ipt-error{{end}}" id="db_path" name="db_path" value="{{.db_path}}" />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.sqlite_helper"}}</span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.general_title"}}</div>
|
||||
<div class="field">
|
||||
<label class="req" for="repo_root_path">{{.i18n.Tr "install.repo_path"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_RepoRootPath}}ipt-error{{end}}" id="repo_root_path" name="repo_root_path" value="{{.repo_root_path}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.repo_path_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="run_user">{{.i18n.Tr "install.run_user"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_RunUser}}ipt-error{{end}}" id="run_user" name="run_user" value="{{.run_user}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.run_user_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="domain">{{.i18n.Tr "install.domain"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_Domain}}ipt-error{{end}}" id="domain" name="domain" value="{{.domain}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.domain_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="http_port">{{.i18n.Tr "install.http_port"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_HttpPort}}ipt-error{{end}}" id="http_port" name="http_port" value="{{.http_port}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.http_port_helper"}}</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="app_url">{{.i18n.Tr "install.app_url"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AppUrl}}ipt-error{{end}}" id="app_url" name="app_url" value="{{.app_url}}" required />
|
||||
<label></label>
|
||||
<span class="help">{{.i18n.Tr "install.app_url_helper"}}</span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.email_title"}}</div>
|
||||
<div class="field">
|
||||
<label for="smtp_host">{{.i18n.Tr "install.smtp_host"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_SmtpHost}}ipt-error{{end}}" id="smtp_host" name="smtp_host" value="{{.smtp_host}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="smtp_user">{{.i18n.Tr "install.mailer_user"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_SMTPEmail}}ipt-error{{end}}" id="smtp_user" name="smtp_user" value="{{.smtp_user}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="smtp_pwd">{{.i18n.Tr "install.mailer_password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_SMTPPasswd}}ipt-error{{end}}" id="smtp_pwd" name="smtp_pwd" type="password" value="{{.smtp_pwd}}" />
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.notify_title"}}</div>
|
||||
<div class="field">
|
||||
<label></label>
|
||||
<input name="register_confirm" type="checkbox" {{if .register_confirm}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "install.register_confirm"}}</strong>
|
||||
<br>
|
||||
<label></label>
|
||||
<input name="mail_notify" type="checkbox" {{if .mail_notify}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "install.mail_notify"}}</strong>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center panel-desc">{{.i18n.Tr "install.admin_title"}}</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_name">{{.i18n.Tr "install.admin_name"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminName}}ipt-error{{end}}" id="admin_name" name="admin_name" value="{{.admin_name}}" required />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_passwd">{{.i18n.Tr "install.admin_password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminPasswd}}ipt-error{{end}}" id="admin_passwd" name="admin_passwd" type="password" value="{{.admin_passwd}}" required />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_confirm_passwd">{{.i18n.Tr "install.confirm_password"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminPasswd}}ipt-error{{end}}" id="admin_confirm_passwd" name="admin_confirm_passwd" type="password" required />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="req" for="admin_email">{{.i18n.Tr "install.admin_email"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_AdminEmail}}ipt-error{{end}}" id="admin_email" name="admin_email" value="{{.admin_email}}" required />
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="field">
|
||||
<label></label>
|
||||
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "install.install_gogs"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "ng/base/footer" .}}
|
||||
Reference in new issue
Block a user