Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions javascripts/discourse/templates/guest-gate.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@
{{#if ssoEnabled}}
{{#if (theme-setting 'use_gate_buttons') }}
<DButton @class={{theme-setting "login_button_style"}} @icon={{theme-setting "login_icon"}} @label={{theme-prefix "guest_gate.sso_log_in"}} @action={{"showLogin"}} />
{{#if (theme-setting 'enable_discourse_connect_signup') }}
<DButton @class={{theme-setting "signup_button_style"}} @icon={{theme-setting "signup_icon"}} @label={{theme-prefix "guest_gate.sso_sign_up"}} @href={{theme-setting "discourse_connect_signup_url"}} />
{{/if}}
{{else}}
<a href {{action "showLogin"}}>{{theme-i18n "guest_gate.sso_log_in"}}</a>
{{#if (theme-setting 'enable_discourse_connect_signup') }}
{{theme-i18n "guest_gate.or"}}
<a href="{{theme-setting 'discourse_connect_signup_url'}}">{{theme-i18n "guest_gate.sso_sign_up"}}</a>
{{/if}}
{{/if}}
{{else}}
{{#if (theme-setting 'use_gate_buttons') }}
Expand Down
1 change: 1 addition & 0 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ en:
sign_up: "Sign Up"
log_in: "I already have an account"
sso_log_in: "Log In"
sso_sign_up: "Sign Up"
or: "or"
custom_gate:
big_text: "Custom Big text"
Expand Down
10 changes: 9 additions & 1 deletion settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ custom_login_url:
custom_signup_url:
type: string
default: "/signup"
description: "For example, /signup is the home page with the “Sign Up” modal displayed."
description: "For example, /signup is the home page with the “Sign Up” modal displayed."
enable_discourse_connect_signup:
type: bool
default: false
description: "Add a Sign Up button to Discourse Connect. With this you can add a different external url for registration etc."
discourse_connect_signup_url:
type: string
default: ""
description: "Paste a URL for Discourse Connect Sign Up button."
gate_footer_position:
default: center
type: enum
Expand Down