mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-29 04:28:12 +01:00
Summary: Added phts, tested forms on mobile. Test Plan: Review each page in Chrome and iOS. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4702
26 lines
697 B
PHP
26 lines
697 B
PHP
<?php
|
|
|
|
abstract class PhabricatorMetaMTAController extends PhabricatorController {
|
|
|
|
public function shouldRequireAdmin() {
|
|
return true;
|
|
}
|
|
|
|
public function buildSideNavView() {
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
$nav->addLabel(pht('Mail Logs'));
|
|
$nav->addFilter('sent', pht('Sent Mail'), $this->getApplicationURI());
|
|
$nav->addFilter('received', pht('Received Mail'));
|
|
|
|
if ($this->getRequest()->getUser()->getIsAdmin()) {
|
|
$nav->addLabel(pht('Diagnostics'));
|
|
$nav->addFilter('send', pht('Send Test'));
|
|
$nav->addFilter('receive', pht('Receive Test'));
|
|
}
|
|
|
|
return $nav;
|
|
}
|
|
|
|
}
|