Changeset View
Changeset View
Standalone View
Standalone View
src/applications/uiexample/examples/PHUITimelineExample.php
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | $events[] = id(new PHUITimelineEventView()) | ||||
| ->setIcon('fa-circle-o') | ->setIcon('fa-circle-o') | ||||
| ->setTitle(pht('Major Green Disagreement Action')) | ->setTitle(pht('Major Green Disagreement Action')) | ||||
| ->appendChild(pht('This event is green!')) | ->appendChild(pht('This event is green!')) | ||||
| ->setColor(PhabricatorTransactions::COLOR_GREEN); | ->setColor(PhabricatorTransactions::COLOR_GREEN); | ||||
| $events[] = id(new PHUITimelineEventView()) | $events[] = id(new PHUITimelineEventView()) | ||||
| ->setUserHandle($handle) | ->setUserHandle($handle) | ||||
| ->setIcon('fa-tag') | ->setIcon('fa-tag') | ||||
| ->setTitle(str_repeat('Long Text Title ', 64)) | ->setTitle(str_repeat(pht('Long Text Title').' ', 64)) | ||||
| ->appendChild(str_repeat('Long Text Body ', 64)) | ->appendChild(str_repeat(pht('Long Text Body').' ', 64)) | ||||
| ->setColor(PhabricatorTransactions::COLOR_ORANGE); | ->setColor(PhabricatorTransactions::COLOR_ORANGE); | ||||
| $events[] = id(new PHUITimelineEventView()) | $events[] = id(new PHUITimelineEventView()) | ||||
| ->setUserHandle($handle) | ->setUserHandle($handle) | ||||
| ->setTitle(str_repeat('LongTextEventNoSpaces', 1024)) | ->setTitle(str_repeat('LongTextEventNoSpaces', 1024)) | ||||
| ->appendChild(str_repeat('LongTextNoSpaces', 1024)) | ->appendChild(str_repeat('LongTextNoSpaces', 1024)) | ||||
| ->setColor(PhabricatorTransactions::COLOR_RED); | ->setColor(PhabricatorTransactions::COLOR_RED); | ||||
| ▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines | |||||