anchor.diff:          p
   
           if (data.details[1] && data.details[1].length !== 0)
  -            p.quiet.block Effective Sentence
               - var first = data.details[1][0]
               div.grid-row.list-row
                   div.column-full
                       div.left-border
  +                        span.quiet Effective Sentence
                           div #{first.changeDate}
                           div #{first.length} days
                           if first.keyDates
  
positive.code: block subject-details
      div.column-two-thirds
          if (data.details[0] && data.details[0].length !== 0)
              p.quiet.block Court Hearings
              each val,index in data.details[0]
                  div.grid-row.list-row
                      div.column-full
                          div.left-border
                              div #{val.date}
                              div #{val.court}
          else
  
negative.code:                                             span.quiet #{label}
                                              |  #{date}
              if (data.details[1] && data.details[1].length >1)
                  a more
  
                  div.panel.panel-border-none(style='padding-left:0')
                      each val,index in data.details[1]
                          if index !== 0
                              div.grid-row.list-row
                                  div.column-full
                                      div.left-border
                                          span.quiet Effective Sentence
                                          div #{val.changeDate}
                                          div #{val.length} days
                                          if val.keyDates
                                              ul.prisoner-key-dates
                                                  each date, label in val.keyDates
                                                      if date
                                                          li
                                                              span.quiet #{label}
                                                              |  #{date}
          else
              div
                  span Subject has no sentence history
  