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.

A timeline of member activityA timeline of member activity

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>
ClassWhat it is
.ph-timelineThe list, with a line joining the dots
.ph-timeline-itemOne event (blue dot)
--success / --warning / --danger / --neutralGreen / orange / red / grey dot
.ph-timeline-titleWhat happened
.ph-timeline-timeWhen, 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.relative for recent events and phApp.format.dateTime for older ones.
  • Show the latest 10 or so, with a link to the full history.