diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:09:22 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:09:22 -0400 |
commit | 369ddf76a8ae6916ab72f1fa26c81b44c456c6ea (patch) | |
tree | 3e26392ef3ff4569cc077432e507e848f907df8a /templates/user | |
parent | 53a17bbd240e0dd3755b7a666792d69e358f3e00 (diff) | |
download | gitea-369ddf76a8ae6916ab72f1fa26c81b44c456c6ea.tar.gz gitea-369ddf76a8ae6916ab72f1fa26c81b44c456c6ea.zip |
Batch fix
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/signin.tmpl | 2 | ||||
-rw-r--r-- | templates/user/signup.tmpl | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/user/signin.tmpl b/templates/user/signin.tmpl index e60cedec88..a49bf11405 100644 --- a/templates/user/signin.tmpl +++ b/templates/user/signin.tmpl @@ -32,7 +32,7 @@ </div> <div class="form-group text-center" id="gogs-social-login"> - <a class="btn btn-default btn-lg">Social Login</a> + <a class="btn btn-danger btn-lg">Register new account</a> </div> </form> </div> diff --git a/templates/user/signup.tmpl b/templates/user/signup.tmpl index 187364de8f..069d34a5b2 100644 --- a/templates/user/signup.tmpl +++ b/templates/user/signup.tmpl @@ -2,6 +2,9 @@ {{template "base/navbar" .}} <div class="container" id="gogs-body" data-page="user-signup"> <form action="/user/sign_up" method="post" class="form-horizontal gogs-card" id="gogs-login-card"> + {{if .DisenableRegisteration}} + Sorry, registeration has been disenabled, you can only get account from administrator. + {{else}} <h3>Sign Up</h3> <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div> <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}"> @@ -43,6 +46,7 @@ <a href="/user/login">Already have an account? Sign in now!</a> </div> </div> + {{end}} </form> </div> {{template "base/footer" .}}
\ No newline at end of file |