Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITimelineEventView.php
| Show First 20 Lines • Show All 510 Lines • ▼ Show 20 Lines | foreach ($this->getEventGroup() as $event) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| if ($color) { | if ($color) { | ||||
| $outer_classes[] = 'phui-timeline-'.$color; | $outer_classes[] = 'phui-timeline-'.$color; | ||||
| } | } | ||||
| $sigil = null; | $sigils = array(); | ||||
| $meta = null; | $meta = null; | ||||
| if ($this->getTransactionPHID()) { | if ($this->getTransactionPHID()) { | ||||
| $sigil = 'transaction'; | $sigils[] = 'transaction'; | ||||
| $meta = array( | $meta = array( | ||||
| 'phid' => $this->getTransactionPHID(), | 'phid' => $this->getTransactionPHID(), | ||||
| 'anchor' => $this->anchor, | 'anchor' => $this->anchor, | ||||
| ); | ); | ||||
| } | } | ||||
| $major_event = null; | $major_event = null; | ||||
| if ($this->reallyMajorEvent) { | if ($this->reallyMajorEvent) { | ||||
| $major_event = phutil_tag( | $major_event = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phui-timeline-event-view '. | 'class' => 'phui-timeline-event-view '. | ||||
| 'phui-timeline-spacer '. | 'phui-timeline-spacer '. | ||||
| 'phui-timeline-spacer-bold', | 'phui-timeline-spacer-bold', | ||||
| '', | |||||
| )); | )); | ||||
| } | } | ||||
| $sigils[] = 'anchor-container'; | |||||
| return array( | return array( | ||||
| javelin_tag( | javelin_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => implode(' ', $outer_classes), | 'class' => implode(' ', $outer_classes), | ||||
| 'id' => $this->anchor ? 'anchor-'.$this->anchor : null, | 'sigil' => implode(' ', $sigils), | ||||
| 'sigil' => $sigil, | |||||
| 'meta' => $meta, | 'meta' => $meta, | ||||
| ), | ), | ||||
| phutil_tag( | phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => implode(' ', $classes), | 'class' => implode(' ', $classes), | ||||
| ), | ), | ||||
| $content)), | $content)), | ||||
| ▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines | |||||