.dialog.dialog-overlay-sm{ layout: 'dialog', 'layout-id' => 'launch-app-dialog', id: 'launch-app-dialog'}
  .content-head
    = image_tag "content/icon_alert.png", {:width => 24, :height => 24, :class => 'content-icon' }
    %h1 Application Notice
  .dialog-inner

%script{type: 'text/template', id: 'template-attempt-launch'}
  %p
    {{data.messagePrefix}}, you must use the JamKazam application.
  .right.launch-buttons
    %a.button-grey.btn-cancel{href:'#', 'layout-action' => 'close'} CANCEL
    %a.button-orange.btn-launch-app{href:'{{data.launchUrl}}'} LAUNCH APP

%script{type: 'text/template', id: 'template-unsupported-launch'}
  %p
    {{data.messagePrefix}}, you must use the JamKazam application. Please download and install the application if you have not done so already.
  .right.launch-buttons
    %a.button-grey.btn-cancel{href:'#', 'layout-action' => 'close'} CANCEL
    %a.button-orange.btn-go-to-download-page{href:'/downloads'} GO TO APP DOWNLOAD PAGE

%script{type: 'text/template', id: 'template-launch-successful'}
  %p
    The JamKazam application was launched successfully.
    %a.not-actually-launched{href: '#'} Don't see it?
  .dont-see-it
    %p
      If you do not see the application, it may be minimized.  Double-check the
      %a{href:'{{data.osSpecificSystemTrayLink}}', rel: 'external'} {{data.osSpecificSystemTray}}
      to see if it's running.
    %p
      If the application is not running, then please
      %a.download-application{href: '/downloads'} download
      and install the application if you have not done so already, and then start it manually rather than using this web launcher.
  .right.launch-buttons
    %a.button-grey.btn-done{href:'#', 'layout-action' => 'close'} DONE

%script{type: 'text/template', id: 'template-launch-unsuccessful'}
  %h2 The JamKazam application could not be launched.
  %p
    If you do not see the application, it may be minimized. Double-check the
    %a{href:'{{data.osSpecificSystemTrayLink}}', rel: 'external'} {{data.osSpecificSystemTray}}
    to see if it's running.
  %p
    If the application is not running, then please
    %a.download-application{href: '/downloads'} download
    and install the application if you have not done so already, and then start it manually rather than using this web launcher.
  .right.launch-buttons
    %a.button-grey.btn-done{href:'#', 'layout-action' => 'close'} CLOSE
    %a.button-orange.btn-go-to-download-page{href:'/downloads'} GO TO APP DOWNLOAD PAGE
