mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
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
This commit is contained in:
parent
8ccd280889
commit
c1dca8238f
2 changed files with 25 additions and 7 deletions
|
@ -49,6 +49,26 @@ final class PhabricatorMetaMTAMailViewController
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->setObject($mail);
|
->setObject($mail);
|
||||||
|
|
||||||
|
$properties->addProperty(
|
||||||
|
pht('ID'),
|
||||||
|
$mail->getID());
|
||||||
|
|
||||||
|
$properties->addProperty(
|
||||||
|
pht('Status'),
|
||||||
|
$mail->getStatus());
|
||||||
|
|
||||||
|
if ($mail->getMessage()) {
|
||||||
|
$properties->addProperty(
|
||||||
|
pht('Status Details'),
|
||||||
|
$mail->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($mail->getRelatedPHID()) {
|
||||||
|
$properties->addProperty(
|
||||||
|
pht('Related Object'),
|
||||||
|
$viewer->renderHandle($mail->getRelatedPHID()));
|
||||||
|
}
|
||||||
|
|
||||||
if ($mail->getActorPHID()) {
|
if ($mail->getActorPHID()) {
|
||||||
$actor_str = $viewer->renderHandle($mail->getActorPHID());
|
$actor_str = $viewer->renderHandle($mail->getActorPHID());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -101,18 +101,16 @@ final class PhabricatorMetaMTAMailSearchEngine
|
||||||
|
|
||||||
foreach ($mails as $mail) {
|
foreach ($mails as $mail) {
|
||||||
if ($mail->hasSensitiveContent()) {
|
if ($mail->hasSensitiveContent()) {
|
||||||
$header = pht(
|
$header = pht('< content redacted >');
|
||||||
'Mail %d: < content redacted >',
|
|
||||||
$mail->getID());
|
|
||||||
} else {
|
} else {
|
||||||
$header = pht(
|
$header = $mail->getSubject();
|
||||||
'Mail %d: %s',
|
|
||||||
$mail->getID(),
|
|
||||||
$mail->getSubject());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$item = id(new PHUIObjectItemView())
|
$item = id(new PHUIObjectItemView())
|
||||||
|
->setUser($viewer)
|
||||||
->setObject($mail)
|
->setObject($mail)
|
||||||
|
->setEpoch($mail->getDateCreated())
|
||||||
|
->setObjectName('Mail '.$mail->getID())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
->setHref($this->getURI('detail/'.$mail->getID()));
|
->setHref($this->getURI('detail/'.$mail->getID()));
|
||||||
$list->addItem($item);
|
$list->addItem($item);
|
||||||
|
|
Loading…
Reference in a new issue