]> source.dussan.org Git - gitea.git/commitdiff
templates/user/auth/signin.tmpl: hide sign up prompt when registration is disabled...
authorUnknwon <joe2010xtmf@163.com>
Thu, 12 Feb 2015 17:38:44 +0000 (12:38 -0500)
committerUnknwon <joe2010xtmf@163.com>
Thu, 12 Feb 2015 17:38:44 +0000 (12:38 -0500)
gogs.go
models/models.go
templates/.VERSION
templates/user/auth/signin.tmpl

diff --git a/gogs.go b/gogs.go
index eac5936218c2d65b0810a93432a63025962a1f30..76c6c71fc36a123fc81bf4c66ba532f31ef737a2 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
        "github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.5.13.0211 Beta"
+const APP_VER = "0.5.13.0212 Beta"
 
 func init() {
        runtime.GOMAXPROCS(runtime.NumCPU())
index 3eeeabda3f63698919f2d000def3f62532f68128..35e803834ca76321ab415813fb6237cc4a0c633d 100644 (file)
@@ -15,7 +15,7 @@ import (
        "github.com/go-xorm/xorm"
        _ "github.com/lib/pq"
 
-       "github.com/gogits/gogs/models/migrations"
+       // "github.com/gogits/gogs/models/migrations"
        "github.com/gogits/gogs/modules/setting"
 )
 
@@ -136,9 +136,9 @@ func NewEngine() (err error) {
                return err
        }
 
-       if err = migrations.Migrate(x); err != nil {
-               return err
-       }
+       // if err = migrations.Migrate(x); err != nil {
+       //      return err
+       // }
 
        if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {
                return fmt.Errorf("sync database struct error: %v\n", err)
index 2aad3653cb4615d07f0b74a6e3bebb7838b23950..6d13155b0231f4d42f459033f5951a045d2735d3 100644 (file)
@@ -1 +1 @@
-0.5.13.0211 Beta
\ No newline at end of file
+0.5.13.0212 Beta
\ No newline at end of file
index 78d6febb80e4d3fd1d7ae79e60efbf588a9d8b46..455df63ac82e60f3224785231cbb6424b29c9796 100644 (file)
                 <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "sign_in"}}</button>&nbsp;&nbsp;&nbsp;&nbsp;
                 {{if not .IsSocialLogin}}<a href="{{AppSubUrl}}/user/forget_password">{{.i18n.Tr "auth.forget_password"}}</a>{{end}}
             </div>
+            {{if .ShowRegistrationButton}}
             <div class="field">
                 <label></label>
                 <a href="{{AppSubUrl}}/user/sign_up">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</a>
             </div>
+            {{end}}
             {{if and (not .IsSocialLogin) .OauthEnabled}}
             <hr/>
             <div id="sign-social" class="text-center social-buttons">