- var voted = citizen.logged() && !!item.voted

li(data-id=item.id)
  a(href='/#{listType}/'+item.id, class = voted ? 'voted' : '')
    .item-tag
      img(src=tagImages[item.tag.image].url)
      svg(viewbox='0 0 126 144', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink', xmlns:sketch='http://www.bohemiancoding.com/sketch/ns').hexagon
        title Hexagon
        g#Page-1(stroke='none', stroke-width='1', fill='none', fill-rule='evenodd', sketch:type='MSPage')
          polygon#Polygon-1(fill='#{item.tag.color}', d='M63,0 L125.353829,36 L125.353829,108 L63,144 L0.646170928,108 L0.646170928,36 L63,0 Z M63,0', sketch:type='MSShapeGroup', points='63 0 125.353829 36 125.353829 108 63 144 0.646170928 108 0.646170928 36 ')

    .item-badges
      - if(voted)
        include ./check

    span.title= item.mediaTitle
    span.created-by
      - if (item.participants.length > 0)
        - var plural = 1 === item.participants.length ? '' : 's'
        div= item.participants.length + ' ' + t('Participant') + plural
      - if (item.closingAt)
        - var closed = item.closingAt && +new Date(item.closingAt) < Date.now()
        span.time-ago-label= (closed ? t('Closed') : t('Close')) + ' '
        span.meta-item.meta-timeago.ago(data-time=item.closingAt.toString())