Guest User

Untitled

a guest
Jul 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. - if message = (flash.delete(:notice) || session.delete(:notice))
  2. - stack_lightbox :notice do
  3. %p= message
  4.  
  5. - elsif params[:_lbs] and !current_user
  6. - stack_lightbox :force_signup, :modal => true do
  7. %p= render :template => 'accounts/signup', :locals => {:signup_user => User.new}
  8.  
  9. - elsif visit and current_user and visit.qualify_for_info_reminder? and request.path != '/info'
  10. - stack_lightbox :user_info do
  11. %p= render :partial => 'users/basic_info_lightbox'
  12.  
  13.  
  14. - # render primary lightbox
  15.  
  16. - if lb = primary_stacked_lightbox
  17. %script.stacked-lightbox{:type => 'text/html', :'data-delay' => lb.js_delay, :'data-modal' => lb.modal? && 'true' }
  18. - lb.block.call
Add Comment
Please, Sign In to add comment