diff options
author | 无闻 <u@gogs.io> | 2015-02-06 21:03:31 -0500 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-02-06 21:03:31 -0500 |
commit | 87b90372a7a30fb9431e03d84d766c92447ff297 (patch) | |
tree | 5d26acd34f635be7560dc76316a75e240acfd575 /templates | |
parent | 5a99e9a37b1fa194675655e64d5f32ac6cf61729 (diff) | |
parent | 92036a78d1b00dddd3ab46a7025024cb29e91996 (diff) | |
download | gitea-87b90372a7a30fb9431e03d84d766c92447ff297.tar.gz gitea-87b90372a7a30fb9431e03d84d766c92447ff297.zip |
Merge pull request #908 from nicolai86/feature/hide-signup-button-884
Make Signup button display configurable - #884
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/config.tmpl | 2 | ||||
-rw-r--r-- | templates/home.tmpl | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 1f8a85ecb2..f8b4be0b83 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -78,6 +78,8 @@ <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt> <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt> + <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt> <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt> diff --git a/templates/home.tmpl b/templates/home.tmpl index 8603f26f41..29865dbf9a 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -14,7 +14,9 @@ <input class="ipt ipt-large" name="password" type="password" placeholder="{{.i18n.Tr "home.password_holder"}}"/> <input name="from" type="hidden" value="home"> <button class="btn btn-black btn-large">{{.i18n.Tr "sign_in"}}</button> + {{if .ShowRegistrationButton}} <button class="btn btn-green btn-large" id="register-button">{{.i18n.Tr "register"}}</button> + {{end}} </form> <div id="promo-social" class="social-buttons"> {{template "ng/base/social" .}} |