2021-07-10 19:18:17 +01:00
|
|
|
<main class="bd-main">
|
2023-06-01 17:48:58 -04:00
|
|
|
<div class="container">
|
2021-07-12 09:03:02 -04:00
|
|
|
<div class="bd-duo">
|
|
|
|
<div class="bd-lead">
|
|
|
|
<article class="message is-info">
|
2021-07-10 19:18:17 +01:00
|
|
|
<div class="message-body">
|
2022-01-06 07:58:29 -05:00
|
|
|
There are <strong><?= $total_untagged ?></strong> pastes that still need to be tagged.
|
2021-07-10 19:18:17 +01:00
|
|
|
</div>
|
|
|
|
</article>
|
2021-10-15 20:38:36 -04:00
|
|
|
<?php if ($site_is_private): ?>
|
2021-08-26 05:35:21 -04:00
|
|
|
<h1 class="title is-5">This pastebin is private.</h1>
|
2021-10-15 20:38:36 -04:00
|
|
|
<?php else: ?>
|
2021-08-26 05:35:21 -04:00
|
|
|
<h1 class="title is-4">Pastes Archive</h1>
|
2022-08-25 01:51:54 -04:00
|
|
|
<form class="table_filterer" method="GET">
|
2022-01-06 07:58:29 -05:00
|
|
|
<label><i class="fa fa-search"></i>
|
2023-06-01 17:48:58 -04:00
|
|
|
<input class="search" type="search" name="q" placeholder="Filter..."
|
|
|
|
value="<?= pp_html_escape($filter_value); ?>"/>
|
2022-01-06 07:58:29 -05:00
|
|
|
</label>
|
2022-08-25 01:51:54 -04:00
|
|
|
<label>
|
|
|
|
Show
|
|
|
|
<select name="per_page">
|
|
|
|
<option value="10">10</option>
|
|
|
|
<option value="25">25</option>
|
|
|
|
<option value="50">50</option>
|
|
|
|
<option value="100">100</option>
|
|
|
|
</select>
|
|
|
|
per page
|
|
|
|
</label>
|
|
|
|
<button type="submit" class="button js-hidden">Search</button>
|
|
|
|
</form>
|
|
|
|
<table id="archive" class="table is-fullwidth is-hoverable">
|
2021-07-12 09:03:02 -04:00
|
|
|
<thead>
|
2022-03-12 13:56:32 -05:00
|
|
|
<tr class="paginator__sort">
|
|
|
|
<th data-sort-field="title">Title</th>
|
|
|
|
<th data-sort-field="author">Author</th>
|
2023-05-25 09:31:14 -04:00
|
|
|
<th data-sort-field="updated_at">Updated</th>
|
2022-03-12 13:56:32 -05:00
|
|
|
<th data-sort-field="tags">Tags</th>
|
2021-09-03 08:00:22 -04:00
|
|
|
</tr>
|
2021-07-12 09:03:02 -04:00
|
|
|
</thead>
|
2021-08-26 05:58:37 -04:00
|
|
|
<tbody>
|
2022-08-25 01:51:54 -04:00
|
|
|
<?php foreach ($pastes as $paste): ?>
|
|
|
|
<tr>
|
2023-06-01 15:32:09 -04:00
|
|
|
<td><a href="<?= urlForPaste($paste); ?>"><?= pp_html_escape($paste->title) ?></a></td>
|
2022-08-25 01:51:54 -04:00
|
|
|
<td><?= pp_html_escape($paste->user->username) ?></td>
|
2023-05-25 09:31:14 -04:00
|
|
|
<td><?= pp_html_escape($paste->updated_at ?? $paste->created_at) ?></td>
|
2022-08-25 01:51:54 -04:00
|
|
|
<td><?= tagsToHtml($paste->tags) ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
2021-08-26 05:58:37 -04:00
|
|
|
</tbody>
|
2021-07-12 09:03:02 -04:00
|
|
|
<tfoot>
|
2021-09-03 08:00:22 -04:00
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Author</th>
|
2023-05-25 09:31:14 -04:00
|
|
|
<th>Updated</th>
|
2021-09-03 08:00:22 -04:00
|
|
|
<th>Tags</th>
|
|
|
|
</tr>
|
2021-07-12 09:03:02 -04:00
|
|
|
</tfoot>
|
|
|
|
</table>
|
2022-08-25 01:51:54 -04:00
|
|
|
<div class="loading_container is-hidden">
|
2022-04-18 13:54:01 -04:00
|
|
|
</div>
|
2021-07-10 18:21:03 -04:00
|
|
|
|
2022-08-25 01:51:54 -04:00
|
|
|
<div class="paginator">
|
|
|
|
<?= paginate($current_page, $per_page, $total_results) ?>
|
|
|
|
</div>
|
2021-07-12 09:03:02 -04:00
|
|
|
</div>
|
2021-10-15 20:38:36 -04:00
|
|
|
<?php endif; ?>
|
2021-07-12 09:03:02 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-06 07:58:29 -05:00
|
|
|
</main>
|