aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-18 12:47:35 -0500
committerUnknwon <u@gogs.io>2017-02-18 12:47:35 -0500
commit21d538a73857e4732dc2060279ee486caa93e921 (patch)
treeb85fe7054dee775de211f1396474c12ecceed6e8 /public
parent36f448f47fefe9222a7781063b28d81937053964 (diff)
install: able to enable builtin SSH server (#3773)
Diffstat (limited to 'public')
-rw-r--r--public/css/gogs.css5
-rw-r--r--public/js/gogs.js7
-rw-r--r--public/less/_install.less5
3 files changed, 12 insertions, 5 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index e437ae49..5cccce31 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -900,6 +900,11 @@ footer .ui.language .menu {
.install .ui .checkbox label {
width: auto !important;
}
+.install #use-builtin-ssh-server {
+ margin-top: -1em;
+ margin-left: -15px !important;
+ margin-bottom: 2em;
+}
.form .help {
color: #999999;
padding-top: .6em;
diff --git a/public/js/gogs.js b/public/js/gogs.js
index b77b1104..b7770fde 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -212,18 +212,15 @@ function initInstall() {
// Database type change detection.
$("#db_type").change(function () {
var sqliteDefault = 'data/gogs.db';
- var tidbDefault = 'data/gogs_tidb';
var dbType = $(this).val();
- if (dbType === "SQLite3" || dbType === "TiDB") {
+ if (dbType === "SQLite3") {
$('#sql_settings').hide();
$('#pgsql_settings').hide();
$('#sqlite_settings').show();
- if (dbType === "SQLite3" && $('#db_path').val() == tidbDefault) {
+ if (dbType === "SQLite3") {
$('#db_path').val(sqliteDefault);
- } else if (dbType === "TiDB" && $('#db_path').val() == sqliteDefault) {
- $('#db_path').val(tidbDefault);
}
return;
}
diff --git a/public/less/_install.less b/public/less/_install.less
index 7f118463..0de4cdad 100644
--- a/public/less/_install.less
+++ b/public/less/_install.less
@@ -28,4 +28,9 @@
}
}
}
+ #use-builtin-ssh-server {
+ margin-top: -1em;
+ margin-left: -15px !important;
+ margin-bottom: 2em;
+ }
}