Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITimelineEventView.php
| Show First 20 Lines • Show All 585 Lines • ▼ Show 20 Lines | if ($this->getIsPreview()) { | ||||
| $date_created = $event->getDateCreated(); | $date_created = $event->getDateCreated(); | ||||
| } else { | } else { | ||||
| $date_created = min($event->getDateCreated(), $date_created); | $date_created = min($event->getDateCreated(), $date_created); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if ($date_created) { | if ($date_created) { | ||||
| $date = phabricator_datetime( | $date = phabricator_dual_datetime( | ||||
| $date_created, | $date_created, | ||||
| $this->getUser()); | $this->getUser()); | ||||
| if ($this->anchor) { | if ($this->anchor) { | ||||
| Javelin::initBehavior('phabricator-watch-anchor'); | Javelin::initBehavior('phabricator-watch-anchor'); | ||||
| Javelin::initBehavior('phabricator-tooltips'); | Javelin::initBehavior('phabricator-tooltips'); | ||||
| $date = array( | $date = array( | ||||
| javelin_tag( | javelin_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '#'.$this->anchor, | 'href' => '#'.$this->anchor, | ||||
| 'sigil' => 'has-tooltip', | 'sigil' => 'has-tooltip', | ||||
| 'meta' => array( | 'meta' => array( | ||||
| 'tip' => $content_source, | 'tip' => $content_source, | ||||
| ), | ), | ||||
| ), | ), | ||||
| $date), | $date), | ||||
| ); | ); | ||||
| } | } | ||||
| $extra[] = $date; | $extra[] = $date; | ||||
| } | } | ||||
| // If this edit was applied silently, give user a hint that they should | // If this edit was applied silently, give user a hint that they should | ||||
| // not expect to have received any mail or notifications. | // not expect to have received any mail or notifications. | ||||
| if ($this->getIsSilent()) { | if ($this->getIsSilent()) { | ||||
| $extra[] = id(new PHUIIconView()) | $extra[] = id(new PHUIIconView()) | ||||
| ->setIcon('fa-bell-slash', 'white') | ->setIcon('fa-bell-slash', 'white') | ||||
| ▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines | |||||