From 26ae7b728c55ff9be212e3e6177ade6d3c2c0fff Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Mon, 13 Aug 2012 14:41:12 -0700 Subject: [PATCH] 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 --- .../PhabricatorMetaMTASendController.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/applications/metamta/controller/PhabricatorMetaMTASendController.php b/src/applications/metamta/controller/PhabricatorMetaMTASendController.php index 6e8f7014f2..681632c262 100644 --- a/src/applications/metamta/controller/PhabricatorMetaMTASendController.php +++ b/src/applications/metamta/controller/PhabricatorMetaMTASendController.php @@ -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'));