@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.

MetaMTA - make the new mail app UI a little less bad

Summary: Ref T5791. Makes the result page a little less ugly and adds the time created. Makes the detail page include more useful information about the message.

Test Plan: viewed results page and detail page and they looked better

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5791

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

+25 -7
+20
src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
··· 49 49 ->setUser($viewer) 50 50 ->setObject($mail); 51 51 52 + $properties->addProperty( 53 + pht('ID'), 54 + $mail->getID()); 55 + 56 + $properties->addProperty( 57 + pht('Status'), 58 + $mail->getStatus()); 59 + 60 + if ($mail->getMessage()) { 61 + $properties->addProperty( 62 + pht('Status Details'), 63 + $mail->getMessage()); 64 + } 65 + 66 + if ($mail->getRelatedPHID()) { 67 + $properties->addProperty( 68 + pht('Related Object'), 69 + $viewer->renderHandle($mail->getRelatedPHID())); 70 + } 71 + 52 72 if ($mail->getActorPHID()) { 53 73 $actor_str = $viewer->renderHandle($mail->getActorPHID()); 54 74 } else {
+5 -7
src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
··· 101 101 102 102 foreach ($mails as $mail) { 103 103 if ($mail->hasSensitiveContent()) { 104 - $header = pht( 105 - 'Mail %d: < content redacted >', 106 - $mail->getID()); 104 + $header = pht('< content redacted >'); 107 105 } else { 108 - $header = pht( 109 - 'Mail %d: %s', 110 - $mail->getID(), 111 - $mail->getSubject()); 106 + $header = $mail->getSubject(); 112 107 } 113 108 114 109 $item = id(new PHUIObjectItemView()) 110 + ->setUser($viewer) 115 111 ->setObject($mail) 112 + ->setEpoch($mail->getDateCreated()) 113 + ->setObjectName('Mail '.$mail->getID()) 116 114 ->setHeader($header) 117 115 ->setHref($this->getURI('detail/'.$mail->getID())); 118 116 $list->addItem($item);