|
<?php $this->layout('layout-loggedin', ['title' => $title, 'accounts' => $accounts, 'user' => $user]); ?>
|
|
|
|
<div class="ui main text container" style="margin-top: 80px;">
|
|
|
|
<form action="/dashboard/send" method="get">
|
|
<div class="ui fluid action input">
|
|
<input type="url" name="url" placeholder="enter a URL" value="https://aaronparecki.com/articles/2015/10/05/1/fun-with-qr-codes">
|
|
<button class="ui button">Send Webmentions</button>
|
|
</div>
|
|
<input type="hidden" name="account" value="<?= $site->id ?>">
|
|
</form>
|
|
|
|
<table class="ui striped single line table">
|
|
<thead>
|
|
<th>Status</th>
|
|
<th>Date</th>
|
|
<th>Source & Target</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($webmentions as $mention): ?>
|
|
<tr<?= $mention['status'] == 'pending' ? ' class="warning"' : '' ?>>
|
|
<td><i class="<?= $mention['icon'] ?> icon"></i></td>
|
|
<td><a href="/webmention/<?= $mention['webmention']->token ?>/details"><?= date('M j, g:ia', strtotime($mention['webmention']->created_at)) ?></a></td>
|
|
<td>
|
|
source=<a href="<?= $this->e($mention['webmention']->source) ?>"><?= $this->e($mention['webmention']->source) ?></a><br>
|
|
target=<a href="<?= $this->e($mention['webmention']->source) ?>"><?= $this->e($mention['webmention']->target) ?></a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|