- if current_user && showState
  .clear

  - script = Script.find_by_name(id)
  - user_script = current_user.user_scripts.where(script_id: script.id).first
  - next_unpassed_progression_level = current_user.next_unpassed_progression_level(script)

  - if user_script.try(:completed_at) || (user_script && next_unpassed_progression_level.nil?)
    = link_to script_certificate_image_url(current_user, script), class: 'whitelink' do
      .bottombar.smalltext.printcertificate
        = t('home.print_certificate')
  - elsif next_unpassed_progression_level
    %a.whitelink{href: build_script_level_url(next_unpassed_progression_level)}
      .bottombar.smalltext.continue
        = t('continue')
  - else
    = link_to url, class: 'whitelink' do
      .bottombar.smalltext.trynow
        = t('home.trynow')

- if current_user && showState
  .clear

  - script = Script.find_by_name(id)
  - user_script = current_user.user_scripts.where(script_id: script.id).first
  - next_unpassed_progression_level = current_user.next_unpassed_progression_level(script)

  - if user_script.try(:completed_at) || (user_script && next_unpassed_progression_level.nil?)
    = link_to script_certificate_image_url(current_user, script), class: 'whitelink' do
      .bottombar.smalltext.printcertificate
        = t('home.print_certificate')
  - elsif current_user.working_on_scripts.include?(script)
    %a.whitelink{href: build_script_level_url(next_unpassed_progression_level)}
      .bottombar.smalltext.continue
        = t('continue')
  - else
    = link_to url, class: 'whitelink' do
      .bottombar.smalltext.trynow
        = t('home.trynow')

Make 'try now' show up again for unstarted courses. Relying on User.next_unpassed_progression_level was not correct, since it will just return the first level for a progression that has not yet been started. This meant we were showing 'continue' even when we should have been showing 'try now'.
studio.code.org: Make 'try now' show up again for unstarted courses.
Relying on User.next_unpassed_progression_level was not correct, since it will just return the first level for a progression that has not yet been started.  This meant we were showing 'continue' even when we should have been showing 'try now'.
