mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* convert comment/reply ajax (add, edit, delete, vote, report and management) and redirects (comment/reply > db-page) * update roles when updating own comment/reply
35 lines
1014 B
PHP
35 lines
1014 B
PHP
<?php
|
|
|
|
namespace Aowow;
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
class AdminOutofdateResponse extends TemplateResponse
|
|
{
|
|
protected int $requiredUserGroup = U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_MOD;
|
|
|
|
protected string $template = 'list-page-generic';
|
|
protected string $pageName = 'out-of-date';
|
|
protected ?int $activeTab = parent::TAB_STAFF;
|
|
protected array $breadcrumb = [4, 1, 23]; // Staff > Content > Out of Date Comments
|
|
|
|
protected function generate() : void
|
|
{
|
|
$this->h1 = 'Out of Date Comments';
|
|
array_unshift($this->title, $this->h1);
|
|
|
|
$this->lvTabs = new Tabs(['parent' => "\$\$WH.ge('tabs-generic')"]);
|
|
|
|
parent::generate();
|
|
|
|
$this->lvTabs->addListviewTab(new Listview(array(
|
|
'data' => CommunityContent::getCommentPreviews(['flags' => CC_FLAG_OUTDATED]),
|
|
'extraCols' => '$_'
|
|
), 'commentpreview', 'commentAdminCol'));
|
|
}
|
|
}
|
|
|
|
?>
|