mirror of https://github.com/bra1n/townsquare.git
Clearer majority representation
This commit is contained in:
parent
2717b69ea2
commit
7396a4574e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue