Clearer majority representation

This commit is contained in:
Jul Gvoz 2021-01-09 00:46:34 +02:00
parent 2717b69ea2
commit 7396a4574e
1 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<td>Type</td>
<td>Votes</td>
<td><font-awesome-icon icon="hand-paper" /> Hand up</td>
<td>Passed</td>
<td>Majority</td>
</tr>
</thead>
<tbody>
@ -28,13 +28,18 @@
<td>{{ vote.nominator }}</td>
<td>{{ vote.nominee }}</td>
<td>{{ vote.type }}</td>
<td><strong>{{ vote.votes.length }}</strong> / {{ vote.majority }}</td>
<td><strong>{{ vote.votes.length }}</strong></td>
<td>
<font-awesome-icon icon="user-friends" />
{{ vote.votes.join(", ") }}
</td>
<td>
<font-awesome-icon icon="check-square" v-if="vote.votes.length >= vote.majority" />
<template v-if="vote.votes.length >= vote.majority">
<font-awesome-icon icon="check-square" /> ({{ vote.majority }})
</template>
<template v-else>
<font-awesome-icon icon="square" /> ({{ vote.majority }})
</template>
</td>
</tr>
</tbody>