You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.7 KiB

9 years ago
  1. <?php $tz = -7 * 3600; ?>
  2. <div class="narrow subscription-status">
  3. <h3>Feed Status</h3>
  4. <table class="table">
  5. <tr>
  6. <td>URL</td>
  7. <td><?= $this->feed->feed_url ?></td>
  8. </tr>
  9. <tr>
  10. <td>Last Ping Received</td>
  11. <td><?= friendly_date($this->feed->push_last_ping_received, $tz) ?></td>
  12. </tr>
  13. <tr>
  14. <td>Last Retrieved</td>
  15. <td><?= friendly_date($this->feed->last_retrieved, $tz) ?></td>
  16. </tr>
  17. </table>
  18. <h3>Subscribers</h3>
  19. <table class="table">
  20. <tr>
  21. <td colspan="2">
  22. <?= $this->num_subscribers ?> active subscribers
  23. </td>
  24. </tr>
  25. <? foreach($this->subscribers as $subscriber): ?>
  26. <tr>
  27. <td colspan="2"><h4><?= $subscriber->callback_url ?></h4></td>
  28. </tr>
  29. <tr>
  30. <td>Date Subscribed</td>
  31. <td><?= friendly_date($subscriber->date_created, $tz) ?></td>
  32. </tr>
  33. <tr>
  34. <td>Last Confirmed</td>
  35. <td><?= friendly_date($subscriber->date_confirmed, $tz) ?></td>
  36. </tr>
  37. <tr>
  38. <td>Date Expires</td>
  39. <td><?= friendly_date($subscriber->date_expires, $tz) ?></td>
  40. </tr>
  41. <tr>
  42. <td>Last Ping Sent</td>
  43. <td><?= friendly_date($subscriber->date_last_ping_sent, $tz) ?></td>
  44. </tr>
  45. <tr>
  46. <td>Last Response<br>(from subscriber)</td>
  47. <td><pre><?= htmlspecialchars($subscriber->last_ping_headers."\n\n".$subscriber->last_ping_body) ?></pre></td>
  48. </tr>
  49. <tr>
  50. <td>Last ping was successful?</td>
  51. <td><?= $subscriber->last_ping_success ? 'Yes' : 'No' ?><br>(Subscriber must return 2xx on success)</td>
  52. </tr>
  53. <? if($subscriber->last_ping_success == 0): ?>
  54. <tr>
  55. <td>Retrying ping in</td>
  56. <td>
  57. <?= $subscriber->last_ping_error_delay/2 ?> seconds<br>
  58. (Will be de-activated after 1 hour from first failed ping)
  59. </td>
  60. </tr>
  61. <? endif; ?>
  62. <? endforeach; ?>
  63. </table>
  64. </div>