summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2014-07-10 17:58:32 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2014-07-11 10:44:21 +0200
commit140155f32a9bd8ef2d5a581a1e56701a44a8f5a7 (patch)
tree858f22fd9167b490b8b3fcaed2884215d0f0018a /app/views
parentc9dd5a342f902b27aec73af24776025a03feda48 (diff)
Added allow_registration toggle.
- default is true - See issue #5217 - See companion change in leap_platform.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/common/_action_buttons.html.haml9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/common/_action_buttons.html.haml b/app/views/common/_action_buttons.html.haml
index 266abe1..81ebf67 100644
--- a/app/views/common/_action_buttons.html.haml
+++ b/app/views/common/_action_buttons.html.haml
@@ -3,9 +3,12 @@
.login.span4
%span.link= btn icon('ok-sign') + t(:login), login_path
%span.info= t(:login_info, default: "")
- .signup.span4
- %span.link= btn icon('user') + t(:signup), signup_path
- %span.info= t(:signup_info, default: "")
+ - if APP_CONFIG[:allow_registration]
+ .signup.span4
+ %span.link= btn icon('user') + t(:signup), signup_path
+ %span.info= t(:signup_info, default: "")
+ - else
+ .signup.span4
.help.span4
%span.link= btn icon('question-sign') + t(:get_help), new_ticket_path
%span.info= t(:support_info, default: "")