Differential D25215 Diff 746 src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Lines | private function buildMetadataProperties(PhabricatorMetaMTAMail $mail) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$properties = id(new PHUIPropertyListView()) | $properties = id(new PHUIPropertyListView()) | ||||
->setUser($viewer); | ->setUser($viewer); | ||||
$properties->addProperty(pht('Message PHID'), $mail->getPHID()); | $properties->addProperty(pht('Message PHID'), $mail->getPHID()); | ||||
$details = $mail->getMessage(); | $details = $mail->getMessage(); | ||||
if (!strlen($details)) { | if (!phutil_nonempty_string($details)) { | ||||
$details = phutil_tag('em', array(), pht('None')); | $details = phutil_tag('em', array(), pht('None')); | ||||
} | } | ||||
$properties->addProperty(pht('Status Details'), $details); | $properties->addProperty(pht('Status Details'), $details); | ||||
$actor_phid = $mail->getActorPHID(); | $actor_phid = $mail->getActorPHID(); | ||||
if ($actor_phid) { | if ($actor_phid) { | ||||
$actor_str = $viewer->renderHandle($actor_phid); | $actor_str = $viewer->renderHandle($actor_phid); | ||||
} else { | } else { | ||||
Show All 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0