Timeline
On this page
A timeline lists events in order, newest first, with a dot coloured by what kind of event it was. Use it for a record's activity on a detail page.


Figure 1: A timeline with success, warning, danger and neutral events
<ol class="ph-timeline">
<li class="ph-timeline-item ph-timeline-item--success">
<p class="ph-timeline-title">Checked in at Ormsby Point</p>
<p class="ph-timeline-time">Today, 6:42 am</p>
</li>
<li class="ph-timeline-item ph-timeline-item--danger">
<p class="ph-timeline-title">Declined at Harrow Bay: membership on hold</p>
<p class="ph-timeline-time">Monday, 5:10 pm</p>
</li>
</ol>
| Class | What it is |
|---|---|
.ph-timeline | The list, with a line joining the dots |
.ph-timeline-item | One event (blue dot) |
--success / --warning / --danger / --neutral | Green / orange / red / grey dot |
.ph-timeline-title | What happened |
.ph-timeline-time | When, in secondary text |
Guidelines
- Newest first.
- Say what happened in the title, including the reason for failures ("Declined at Harrow Bay: membership on hold").
- Format times with
phApp.format.relativefor recent events andphApp.format.dateTimefor older ones. - Show the latest 10 or so, with a link to the full history.
Related
- Page patterns: the detail page
- Lists