aboutsummaryrefslogtreecommitdiff
path: root/src/components/poll/poll.vue
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2021-02-09 16:32:33 +0300
committereugenijm <eugenijm@protonmail.com>2021-02-09 16:36:45 +0300
commit1506b97e35c63f9f6ca685ee1a2b61e4580ac134 (patch)
treedc8803682cb5e93ab56fb25655cc5bec5ed510fc /src/components/poll/poll.vue
parent647d75f27c89b0972a58c62e7ab741d339c545d0 (diff)
Display 'people voted' instead of 'votes' for multi-choice polls
Diffstat (limited to 'src/components/poll/poll.vue')
-rw-r--r--src/components/poll/poll.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 42819c19..f1ae8f9c 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -58,7 +58,12 @@
{{ $t('polls.vote') }}
</button>
<div class="total">
- {{ totalVotesCount }} {{ $t("polls.votes") }}&nbsp;·&nbsp;
+ <template v-if="poll.multiple">
+ {{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }}&nbsp;·&nbsp;
+ </template>
+ <template v-else>
+ {{ $tc("polls.votes_count", poll.votes_count, { count: poll.votes_count }) }}&nbsp;·&nbsp;
+ </template>
</div>
<i18n :path="expired ? 'polls.expired' : 'polls.expires_in'">
<Timeago