mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Improve timeline rendering for old macros
Summary: This always bugs me when I'm going through `secure` looking for the spiciest macros. Test Plan: Forced a date to be null, saw reasonable text. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D20453
This commit is contained in:
parent
d8dba26a08
commit
de74332639
1 changed files with 6 additions and 1 deletions
|
@ -136,7 +136,12 @@ final class PhabricatorMacroViewController
|
|||
$image_uri = $handles[$author_phid]->getImageURI();
|
||||
$image_href = $handles[$author_phid]->getURI();
|
||||
|
||||
$content = pht('Masterfully imagined by %s on %s.', $author, $date);
|
||||
if (!$date) {
|
||||
$content = pht(
|
||||
'Masterfully imagined by %s in ages long past.', $author);
|
||||
} else {
|
||||
$content = pht('Masterfully imagined by %s on %s.', $author, $date);
|
||||
}
|
||||
|
||||
return id(new PHUIHeadThingView())
|
||||
->setImage($image_uri)
|
||||
|
|
Loading…
Reference in a new issue