jbrowse-instance--public-listing.tpl.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <p>The JBrowse genome browser allows you to visually explore genomes and their associated large-scale datasets. JBrowse is a widely used application that is fast, intuitive, and compatible with most web browsers.</p>
  2. <div class="jbrowse-list">
  3. <?php foreach ($instances as $instance) { ?>
  4. <div class="jbrowse-instance">
  5. <h3><?php print l($instance->title, $instance->url); ?></h3>
  6. <p><?php
  7. if(property_exists($instance, 'analysis')) {
  8. if ($instance->analysis->url) {
  9. print 'Sequence Assembly: ' . l($instance->analysis->name, $instance->analysis->url) . "<br>";
  10. }
  11. else {
  12. print 'Sequence Assembly: ' . $instance->analysis->name . "<br>";
  13. }
  14. }
  15. print $instance->description; ?></p>
  16. <span class="jbrowse-launch-link"><?php print l('Launch JBrowse', $instance->url); ?></span>
  17. </div>
  18. <?php }
  19. if (empty($instances)) {?>
  20. <div class="empty-list">
  21. <p>There are currently no available JBrowse instances.</p>
  22. </div>
  23. <?php } ?>
  24. </div>
  25. <div class="jbrowse-admin-message">
  26. <?php
  27. print tripal_set_message(
  28. 'You can create or register a JBrowse Instance at '
  29. .l('Administration Toolbar > Tripal > Extensions > Tripal JBrowse Management', 'admin/tripal/extension/tripal_jbrowse/management'),
  30. TRIPAL_INFO,
  31. ['return_html' => TRUE]
  32. );
  33. ?>
  34. </div>