2021-07-10 19:18:17 +01:00
|
|
|
<script>
|
2021-07-12 09:03:02 -04:00
|
|
|
$(document).ready(function () {
|
|
|
|
$("#archive").dataTable({
|
2021-08-16 16:49:57 +01:00
|
|
|
rowReorder: { selector: 'td:nth-child(2)'},
|
|
|
|
responsive: true,
|
2021-07-12 09:03:02 -04:00
|
|
|
processing: true,
|
2021-08-16 18:58:47 +01:00
|
|
|
language: {processing: '<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><span class="sr-only">Loading...</span> '},
|
2021-07-12 09:03:02 -04:00
|
|
|
autoWidth: false,
|
|
|
|
ajax: "api/ajax_pastes.php",
|
|
|
|
initComplete: function () {
|
|
|
|
var search = new URLSearchParams(window.location.search);
|
|
|
|
var query = search.get('q');
|
|
|
|
if (query) {
|
|
|
|
$("#archive_filter input")
|
|
|
|
.val(query)
|
|
|
|
.trigger("input");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
2021-07-10 19:18:17 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<main class="bd-main">
|
2021-07-12 09:03:02 -04:00
|
|
|
<div class="preloader"></div>
|
|
|
|
<div class="bd-side-background"></div>
|
|
|
|
<div class="bd-main-container container">
|
|
|
|
<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">
|
|
|
|
There are <strong><?php echo $total_untagged ?></strong> pastes that still need to be tagged.
|
|
|
|
</div>
|
|
|
|
</article>
|
2021-08-22 21:54:46 -04:00
|
|
|
<?php if ($site_is_private) { // Site permissions
|
2021-07-12 09:03:02 -04:00
|
|
|
?>
|
|
|
|
<h1 class="title is-5"><?php echo $lang['siteprivate']; ?></h1>
|
|
|
|
<?php } else { ?>
|
|
|
|
<h1 class="title is-4"><?php echo $lang['archives']; ?></h1>
|
|
|
|
<table id="archive" class="table is-fullwidth is-hoverable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?php echo $lang['pastetitle']; ?></th>
|
|
|
|
<th><?php echo $lang['author']; ?></th>
|
|
|
|
<th><?php echo $lang['tags']; ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th><?php echo $lang['pastetitle']; ?></th>
|
|
|
|
<th><?php echo $lang['author']; ?></th>
|
|
|
|
<th><?php echo $lang['tags']; ?></th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-07-10 18:21:03 -04:00
|
|
|
|
|
|
|
<?php
|
|
|
|
if (isset($site_ads)) {
|
|
|
|
echo $site_ads['ads_2'];
|
|
|
|
}
|
|
|
|
?>
|
2021-07-12 09:03:02 -04:00
|
|
|
</div>
|
|
|
|
<?php }
|
2021-08-22 21:54:46 -04:00
|
|
|
if (!$site_is_private) {
|
2021-07-12 09:03:02 -04:00
|
|
|
require_once('theme/' . $default_theme . '/sidebar.php');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-10 19:18:17 +01:00
|
|
|
</main>
|