diff --git a/app/models/environment.rb b/app/models/environment.rb index 6827d07..5212825 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -280,6 +280,12 @@ class Environment < ActiveRecord::Base settings_items :access_control_allow_origin, :type => Array, :default => [] settings_items :access_control_allow_methods, :type => String + settings_items :signup_welcome_screen_body, :type => String + + def has_custom_welcome_screen? + settings[:signup_welcome_screen_body].present? + end + def news_amount_by_folder=(amount) settings[:news_amount_by_folder] = amount.to_i end diff --git a/app/views/account/signup.rhtml b/app/views/account/signup.rhtml index f0bc7fe..07ffd31 100644 --- a/app/views/account/signup.rhtml +++ b/app/views/account/signup.rhtml @@ -1,17 +1,21 @@ <% if @register_pending %> -
<%= _("Firstly, some tips for getting started:") %>
-<%= _("You should receive a welcome email from us shortly. Please take a second to follow the link within to confirm your account.") %>
-<%= _("You won't appear as %s until your account is confirmed.") % link_to(_('user'), {:controller => :search, :action => :people, :filter => 'more_recent'}, :target => '_blank') %>
-<%= _("%s. Upload an avatar and let your friends find you easily :)") % link_to(_('Customize your profile'), {:controller => 'doc', :section => 'user', :topic => 'editing-person-info'}, :target => '_blank') %>
-<%= _("Learn the guidelines. Read the %s for more details on how to use this social network!") % link_to(_('Documentation'), {:controller => 'doc'}, :target => '_blank') %>
-<%= _("%s your Gmail, Yahoo and Hotmail contacts!") % link_to(_('Invite and find'), {:controller => 'doc', :section => 'user', :topic => 'invite-contacts'}, :target => '_blank') %>
-<%= _("Start exploring and have fun!") %>
-<%= _("Firstly, some tips for getting started:") %>
+<%= _("You should receive a welcome email from us shortly. Please take a second to follow the link within to confirm your account.") %>
+<%= _("You won't appear as %s until your account is confirmed.") % link_to(_('user'), {:controller => :search, :action => :people, :filter => 'more_recent'}, :target => '_blank') %>
+<%= _("%s. Upload an avatar and let your friends find you easily :)") % link_to(_('Customize your profile'), {:controller => 'doc', :section => 'user', :topic => 'editing-person-info'}, :target => '_blank') %>
+<%= _("Learn the guidelines. Read the %s for more details on how to use this social network!") % link_to(_('Documentation'), {:controller => 'doc'}, :target => '_blank') %>
+<%= _("%s your Gmail, Yahoo and Hotmail contacts!") % link_to(_('Invite and find'), {:controller => 'doc', :section => 'user', :topic => 'invite-contacts'}, :target => '_blank') %>
+<%= _("Start exploring and have fun!") %>
+ <% end %> +