client/src/components/SessionSummary.js
changeset 170 7da1d5137b0b
parent 168 ea92f4fe783d
child 174 ac1a026edd58
equal deleted inserted replaced
169:f98efa1bddd1 170:7da1d5137b0b
     7 const SessionSummary = ({notes}) => (
     7 const SessionSummary = ({notes}) => (
     8   <ul className="list-group sticky-left">
     8   <ul className="list-group sticky-left">
     9     {notes.map((note) =>
     9     {notes.map((note) =>
    10       <li className="list-group-item border-0" key={note._id}>
    10       <li className="list-group-item border-0" key={note._id}>
    11           <a href={'#note-' + note._id}>
    11           <a href={'#note-' + note._id}>
    12             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.startedAt)}</small>
    12             <small className="note-time text-irinotes-time bg-irinotes-headers border-0 text-center">{formatTimestamp(note.startedAt)}</small>
    13             <small className="note-length font-weight-bold px-2 text-muted text-center">{_.words(note.plain).length} mots</small>
    13             <small className="note-length font-weight-bold px-2 text-muted text-center">{_.words(note.plain).length} mots</small>
    14             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.finishedAt)}</small>
    14             <small className="note-time text-irinotes-time bg-irinotes-headers border-0 text-center">{formatTimestamp(note.finishedAt)}</small>
    15           </a>
    15           </a>
    16       </li>
    16       </li>
    17     )}
    17     )}
    18   </ul>
    18   </ul>
    19 )
    19 )