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.

32 lines
1.4 KiB

  1. <?php $this->layout('layout-loggedin', ['title' => $title, 'accounts' => $accounts, 'user' => $user]); ?>
  2. <div class="ui main text container" style="margin-top: 80px;">
  3. <form action="/dashboard/send" method="get">
  4. <div class="ui fluid action input">
  5. <input type="url" name="url" placeholder="enter a URL" value="https://aaronparecki.com/articles/2015/10/05/1/fun-with-qr-codes">
  6. <button class="ui button">Send Webmentions</button>
  7. </div>
  8. <input type="hidden" name="account" value="<?= $site->id ?>">
  9. </form>
  10. <table class="ui striped single line table">
  11. <thead>
  12. <th>Status</th>
  13. <th>Date</th>
  14. <th>Source &amp; Target</th>
  15. </thead>
  16. <tbody>
  17. <?php foreach($webmentions as $mention): ?>
  18. <tr<?= $mention['status'] == 'pending' ? ' class="warning"' : '' ?>>
  19. <td><i class="<?= $mention['icon'] ?> icon"></i></td>
  20. <td><a href="/webmention/<?= $mention['webmention']->token ?>/details"><?= date('M j, g:ia', strtotime($mention['webmention']->created_at)) ?></a></td>
  21. <td>
  22. source=<a href="<?= $this->e($mention['webmention']->source) ?>"><?= $this->e($mention['webmention']->source) ?></a><br>
  23. target=<a href="<?= $this->e($mention['webmention']->source) ?>"><?= $this->e($mention['webmention']->target) ?></a>
  24. </td>
  25. </tr>
  26. <?php endforeach; ?>
  27. </tbody>
  28. </table>
  29. </div>