Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIFeedStoryView.php
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | public function renderNotification($user) { | ||||
if (!$this->viewed) { | if (!$this->viewed) { | ||||
$classes[] = 'phabricator-notification-unread'; | $classes[] = 'phabricator-notification-unread'; | ||||
} | } | ||||
if ($this->getShowTimestamp()) { | if ($this->getShowTimestamp()) { | ||||
if ($this->epoch) { | if ($this->epoch) { | ||||
if ($user) { | if ($user) { | ||||
$foot = phabricator_datetime($this->epoch, $user); | $marker = id(new PHUIIconView()) | ||||
->setIcon('fa-circle') | |||||
->addClass('phabricator-notification-status'); | |||||
$date = phabricator_datetime($this->epoch, $user); | |||||
$foot = phutil_tag( | $foot = phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => 'phabricator-notification-date', | 'class' => 'phabricator-notification-date', | ||||
), | ), | ||||
$foot); | $date); | ||||
$foot = phutil_tag( | |||||
'div', | |||||
array( | |||||
'class' => 'phabricator-notification-foot', | |||||
), | |||||
array( | |||||
$marker, | |||||
$date, | |||||
)); | |||||
} else { | } else { | ||||
$foot = null; | $foot = null; | ||||
} | } | ||||
} else { | } else { | ||||
$foot = pht('No time specified.'); | $foot = pht('No time specified.'); | ||||
} | } | ||||
} else { | } else { | ||||
$foot = null; | $foot = null; | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |