include item-metabar
mixin renderTermList (terms)
  - var submitUrl = user ? '/term/submit' : '/welcome?src=submit';
  if Array.isArray(terms) && (terms.length > 0)
    ul.uk-list.uk-list-divider
      each term in terms
        li(data-term-id= term._id)
          a(href=`/term/${term._id}`).uk-display-block.uk-link-reset.uk-margin-small
            h4.uk-heading.uk-margin-remove= term.term
            if term.definition && term.definition.content
              .markdown-block!= anchorme(marked(term.definition.content))
          +renderItemMetabar(term, 'term')
  else
    .uk-text-muted There are no terms at this time. #[a(href=submitUrl) Submit one] now to get started!