Differential D19016 Diff 45612 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 69 Lines • ▼ Show 20 Lines | $tab_group = id(new PHUITabGroupView()) | ||||
->setKey('delivery') | ->setKey('delivery') | ||||
->appendChild($this->buildDeliveryProperties($mail))) | ->appendChild($this->buildDeliveryProperties($mail))) | ||||
->addTab( | ->addTab( | ||||
id(new PHUITabView()) | id(new PHUITabView()) | ||||
->setName(pht('Metadata')) | ->setName(pht('Metadata')) | ||||
->setKey('metadata') | ->setKey('metadata') | ||||
->appendChild($this->buildMetadataProperties($mail))); | ->appendChild($this->buildMetadataProperties($mail))); | ||||
$header_view = id(new PHUIHeaderView()) | |||||
->setHeader(pht('Mail')); | |||||
$object_phid = $mail->getRelatedPHID(); | |||||
if ($object_phid) { | |||||
$handles = $viewer->loadHandles(array($object_phid)); | |||||
$handle = $handles[$object_phid]; | |||||
if ($handle->isComplete() && $handle->getURI()) { | |||||
$view_button = id(new PHUIButtonView()) | |||||
->setTag('a') | |||||
->setText(pht('View Object')) | |||||
->setIcon('fa-chevron-right') | |||||
->setHref($handle->getURI()); | |||||
$header_view->addActionLink($view_button); | |||||
} | |||||
} | |||||
$object_box = id(new PHUIObjectBoxView()) | $object_box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText(pht('Mail')) | ->setHeader($header_view) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ||||
->addTabGroup($tab_group); | ->addTabGroup($tab_group); | ||||
$view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
->setHeader($header) | ->setHeader($header) | ||||
->setFooter($object_box); | ->setFooter($object_box); | ||||
return $this->newPage() | return $this->newPage() | ||||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |