1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 08:20:57 +01:00

Tweak MetaMTA test console a bit for usability

Summary: default check the system send prefernce for immediateness and add more direct text about dameons, with a link to help.

Test Plan: looks good

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T726

Differential Revision: https://secure.phabricator.com/D3262
This commit is contained in:
Bob Trahan 2012-08-13 14:41:12 -07:00
parent 18a8964b03
commit 26ae7b728c

View file

@ -92,6 +92,17 @@ final class PhabricatorMetaMTASendController
$panel_id = celerity_generate_unique_node_id();
$phdlink_href = PhabricatorEnv::getDoclink(
'article/Managing_Daemons_with_phd.html');
$phdlink = phutil_render_tag(
'a',
array(
'href' => $phdlink_href,
'target' => '_blank',
),
'"phd start"');
$form = new AphrontFormView();
$form->setUser($request->getUser());
$form
@ -149,7 +160,10 @@ final class PhabricatorMetaMTASendController
->addCheckbox(
'immediately',
'1',
'Send immediately, not via MetaMTA background script.'))
'Send immediately. (Do not enqueue for daemons.)',
PhabricatorEnv::getEnvConfig('metamta.send-immediately'))
->setCaption('Daemons can be started with '.$phdlink.'.')
)
->appendChild(
id(new AphrontFormSubmitControl())
->setValue('Send Mail'));