diff --git a/gogs.go b/gogs.go index c9c920ddcc..51ef3cf19d 100644 --- a/gogs.go +++ b/gogs.go @@ -19,7 +19,7 @@ import ( // Test that go1.1 tag above is included in builds. main.go refers to this definition. const go11tag = true -const APP_VER = "0.0.0.0225" +const APP_VER = "0.0.0.0301" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/models/publickey.go b/models/publickey.go index 86dd50e849..49863d8c0b 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -4,9 +4,10 @@ import ( "fmt" "os" "os/exec" - "os/user" "path/filepath" "time" + + "github.com/Unknwon/com" ) var ( @@ -27,11 +28,11 @@ func exePath() (string, error) { } func homeDir() string { - user, err := user.Current() + home, err := com.HomeDir() if err != nil { return "/" } - return user.HomeDir + return home } func init() { @@ -68,7 +69,7 @@ func AddPublicKey(key *PublicKey) error { if err != nil { _, err2 := orm.Delete(key) if err2 != nil { - // TODO: logo the error + // TODO: log the error } return err } diff --git a/public/css/gogs.css b/public/css/gogs.css index 39796f6e39..08dada0457 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -85,8 +85,7 @@ body { } /* gogits login card */ -#gogs-login-card { - width: 600px; +.gogs-card{ margin: auto; padding: 30px; background: #fff; @@ -95,13 +94,17 @@ body { box-sizing: border-box; } -#gogs-login-card h3 { +.gogs-card h3 { margin-top: 0; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #ccc; } +#gogs-login-card{ + width: 600px; +} + #gogs-login-card .form-control { padding: 6px 12px; box-sizing: content-box; @@ -112,7 +115,7 @@ body { line-height: 30px; } -#gogs-login-card .btn{ +.gogs-card .btn{ cursor: pointer; margin-right: 1.2em; } @@ -170,4 +173,14 @@ body { #gogs-user-act-tabs li.active a{ border-bottom-color: #ddd; +} + +/* gogits repo create */ + +#gogs-repo-create{ + width: 800px; +} + +#gogs-repo-create textarea[name=desc]{ + height: 8em; } \ No newline at end of file diff --git a/public/img/checkmark.png b/public/img/checkmark.png new file mode 100644 index 0000000000..ad85a91027 Binary files /dev/null and b/public/img/checkmark.png differ diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index c93f9386df..a3ad06df0d 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -1,24 +1,57 @@ {{template "base/head" .}} {{template "base/navbar" .}} -