@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update MetaMTA to new UI

Summary: Swaps over to new hotness

Test Plan: Pull up mail view, see new UI

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15616

+15 -12
+15 -12
src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
··· 23 23 $header = id(new PHUIHeaderView()) 24 24 ->setHeader($title) 25 25 ->setUser($viewer) 26 - ->setPolicyObject($mail); 26 + ->setPolicyObject($mail) 27 + ->setHeaderIcon('fa-envelope'); 27 28 28 29 $status = $mail->getStatus(); 29 30 $name = PhabricatorMailOutboundStatus::getStatusName($status); ··· 32 33 $header->setStatus($icon, $color, $name); 33 34 34 35 $crumbs = $this->buildApplicationCrumbs() 35 - ->addTextCrumb(pht('Mail %d', $mail->getID())); 36 + ->addTextCrumb(pht('Mail %d', $mail->getID())) 37 + ->setBorder(true); 36 38 37 39 $object_box = id(new PHUIObjectBoxView()) 38 - ->setHeader($header) 40 + ->setHeaderText(pht('Mail')) 41 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 39 42 ->addPropertyList($this->buildMessageProperties($mail), pht('Message')) 40 43 ->addPropertyList($this->buildHeaderProperties($mail), pht('Headers')) 41 44 ->addPropertyList($this->buildDeliveryProperties($mail), pht('Delivery')) 42 45 ->addPropertyList($this->buildMetadataProperties($mail), pht('Metadata')); 43 46 44 - return $this->buildApplicationPage( 45 - array( 46 - $crumbs, 47 - $object_box, 48 - ), 49 - array( 50 - 'title' => $title, 51 - 'pageObjects' => array($mail->getPHID()), 52 - )); 47 + $view = id(new PHUITwoColumnView()) 48 + ->setHeader($header) 49 + ->setFooter($object_box); 50 + 51 + return $this->newPage() 52 + ->setTitle($title) 53 + ->setCrumbs($crumbs) 54 + ->setPageObjectPHIDs(array($mail->getPHID())) 55 + ->appendChild($view); 53 56 } 54 57 55 58 private function buildMessageProperties(PhabricatorMetaMTAMail $mail) {