@ -59,4 +59,10 @@ module HomescreenHelper
title: label,
target: '_blank'
end
##
# Determine whether we should render the onboarding modal
def show_onboarding_modal?
return OpenProject::Configuration.onboarding_enabled? && params[:first_time_user]
@ -34,7 +34,7 @@ See doc/COPYRIGHT.rdoc for more details.
</h2>
</div>
<% if params[:first_time_user] %>
<% if show_onboarding_modal? %>
<modal-wrapper initialize="true" modal-params="{ appendClassName: 'onboarding-modal' }">
<%= render partial: '/onboarding/starting_video_modal' %>
</modal-wrapper>
@ -92,7 +92,8 @@ module OpenProject
'apiv2_enable_basic_auth' => true,
'onboarding_video_url' => 'https://player.vimeo.com/video/163426858'
'onboarding_video_url' => 'https://player.vimeo.com/video/163426858',
'onboarding_enabled' => true
}
@config = nil