Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITimelineView.php
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | public function render() { | ||||
$events = $this->buildEvents(); | $events = $this->buildEvents(); | ||||
return phutil_tag( | return phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'phui-timeline-view', | 'class' => 'phui-timeline-view', | ||||
'id' => $this->id, | 'id' => $this->id, | ||||
), | ), | ||||
$events); | array( | ||||
phutil_tag( | |||||
'h3', | |||||
array( | |||||
'class' => 'aural-only', | |||||
), | |||||
pht('Event Timeline')), | |||||
$events, | |||||
)); | |||||
} | } | ||||
public function buildEvents() { | public function buildEvents() { | ||||
require_celerity_resource('phui-timeline-view-css'); | require_celerity_resource('phui-timeline-view-css'); | ||||
$spacer = self::renderSpacer(); | $spacer = self::renderSpacer(); | ||||
// Track why we're hiding older results. | // Track why we're hiding older results. | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |