blast_report_pending.tpl.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Template to keep the user updated on the progress of their BLAST
  4. *
  5. * Available Variables:
  6. * - $status_code: a numerical code describing the status of the job. See the table
  7. * below for possible values.
  8. * - $status: a string describing the status of the job. See the table below for
  9. * possible values
  10. *
  11. * CODE STATUS DESCRIPTION
  12. * 0 Pending The tripal job has been created but has not yet been launched.
  13. * 1 Running The Tripal job is currently running.
  14. * 999 Cancelled The Tripal job was cancelled by an administrator.
  15. */
  16. ?>
  17. <?php
  18. // JOB IN QUEUE
  19. if ($status_code === 0) {
  20. drupal_set_title('BLAST Job in Queue');
  21. ?>
  22. <p>Your BLAST has been registered and will be started shortly.</p>
  23. <?php
  24. }
  25. // JOB IN PROGRESS
  26. elseif ($status_code === 1) {
  27. drupal_set_title('BLAST Job in Progress');
  28. ?>
  29. <p>Your BLAST job is currently running. The results will be listed here as soon as it completes.</p>
  30. <?php
  31. }
  32. // JOB CANCELLED
  33. elseif ($status_code === 999) {
  34. drupal_set_title('BLAST Job Cancelled');
  35. ?>
  36. <p>Unfortunately your BLAST job has been cancelled by an Administrator.</p>
  37. <?php
  38. }
  39. ?>