<commit_before><script lang="coffee">
import Session from '@/shared/services/session'

export default
  props:
    poll: Object
    displayGroupName: Boolean
  methods:
    showGroupName: ->
      @displayGroupName && @poll.groupId
</script>

<template lang="pug">
v-list-item.poll-common-preview(:to='urlFor(poll)')
  v-list-item-avatar
    poll-common-chart-preview(:poll='poll')
  v-list-item-content
    v-list-item-title {{poll.title}}
    v-list-item-subtitle
      span(v-t="{ path: 'poll_common_collapsed.by_who', args: { name: poll.authorName() } }")
      space
      span ·
      space
      span(v-if='displayGroupName && poll.groupId')
        span {{ poll.group().name }}
        space
        span ·
        space
      poll-common-closing-at(:poll='poll' approximate)
</template><commit_msg>show poll tags in poll preview<commit_after><script lang="coffee">
import Session from '@/shared/services/session'

export default
  props:
    poll: Object
    displayGroupName: Boolean
  methods:
    showGroupName: ->
      @displayGroupName && @poll.groupId
</script>

<template lang="pug">
v-list-item.poll-common-preview(:to='urlFor(poll)')
  v-list-item-avatar
    poll-common-chart-preview(:poll='poll')
  v-list-item-content
    v-list-item-title
      | {{poll.title}}
      tags-display(:tags="poll.tags()")
    v-list-item-subtitle
      span(v-t="{ path: 'poll_common_collapsed.by_who', args: { name: poll.authorName() } }")
      space
      span ·
      space
      span(v-if='displayGroupName && poll.groupId')
        span {{ poll.group().name }}
        space
        span ·
        space
      poll-common-closing-at(:poll='poll' approximate)
</template>
{'fraction_non_alphanumeric': 0.1542584871947588, 'fraction_numerical': 0.0, 'mean_word_length': 2.9622641509433962, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5552604', 'n_tokens_mistral': 543, 'n_tokens_neox': 532, 'n_words': 101}