2020-01-16 16:25:40 +01:00
|
|
|
<h2 >Résumé</h2 >
|
|
|
|
<div class="preferred" >
|
|
|
|
<i class='fa fa-star' ></i >
|
2020-01-30 11:19:17 +01:00
|
|
|
Pour l'instant, le choix ayant reçu le plus grand nombre de votes ( {{config.currentPoll.choices_count.maxScore}} )
|
|
|
|
est :
|
2020-01-16 16:25:40 +01:00
|
|
|
<span class='preferred-result' >
|
|
|
|
{{preferred}}
|
|
|
|
</span >
|
|
|
|
</div >
|
2020-01-29 17:30:39 +01:00
|
|
|
<table >
|
|
|
|
<thead >
|
2020-01-30 11:19:17 +01:00
|
|
|
<tr *ngIf='config.currentPoll.choices && config.currentPoll.choices_count' >
|
2020-01-29 17:30:39 +01:00
|
|
|
<td >
|
|
|
|
Pseudo
|
|
|
|
</td >
|
2020-01-30 11:19:17 +01:00
|
|
|
<td
|
|
|
|
*ngFor='let k of getKeys(config.currentPoll.choices_count.counts )'
|
|
|
|
|
|
|
|
>
|
|
|
|
{{k}} )
|
|
|
|
{{config.currentPoll.choices_count.counts[k].choice_text}}
|
2020-01-29 17:30:39 +01:00
|
|
|
</td >
|
|
|
|
</tr >
|
2020-01-29 17:52:04 +01:00
|
|
|
<!-- somme des points, dont un demi point pour les "peut être" -->
|
|
|
|
|
2020-01-29 17:30:39 +01:00
|
|
|
</thead >
|
|
|
|
<tbody >
|
2020-01-29 17:52:04 +01:00
|
|
|
<tr
|
|
|
|
|
|
|
|
title='somme des points, dont un demi point pour les "peut être"' >
|
|
|
|
<td >
|
|
|
|
<i class='fa fa-plus-circle' ></i > points
|
|
|
|
</td >
|
2020-01-30 11:19:17 +01:00
|
|
|
<td
|
|
|
|
*ngFor='let k of getKeys(config.currentPoll.choices_count.counts )'
|
|
|
|
[ngClass]='{"has-max-score" : config.currentPoll.choices_count.maxScore === config.currentPoll.choices_count.counts[k].score}' >
|
|
|
|
{{config.currentPoll.choices_count.counts[k].score}}
|
|
|
|
</td >
|
|
|
|
</tr >
|
|
|
|
<tr class='details' >
|
|
|
|
<td >
|
|
|
|
<i class='fa fa-eye' ></i >
|
|
|
|
</td >
|
2020-01-29 17:52:04 +01:00
|
|
|
<td *ngFor='let k of getKeys(config.currentPoll.choices_count.counts )' >
|
2020-01-30 11:19:17 +01:00
|
|
|
id: {{k}}
|
|
|
|
<br >
|
|
|
|
yes {{config.currentPoll.choices_count.counts[k].yes.count}}
|
|
|
|
<br >
|
|
|
|
maybe
|
|
|
|
{{(config.currentPoll.choices_count.counts[k].yes.maybe ? config.currentPoll.choices_count.counts[k].yes.count * 0.5 : 0)}}
|
|
|
|
|
|
|
|
<br >
|
|
|
|
no {{(config.currentPoll.choices_count.counts[k].yes.maybe ? config.currentPoll.choices_count.counts[k].maybe.count * 0.5 : 0)}}
|
|
|
|
<br >
|
|
|
|
score :
|
|
|
|
{{(config.currentPoll.choices_count.counts[k].score)}}
|
|
|
|
|
2020-01-29 17:52:04 +01:00
|
|
|
</td >
|
|
|
|
</tr >
|
2020-01-29 17:30:39 +01:00
|
|
|
<tr
|
|
|
|
class='votes-of-the-person'
|
2020-01-30 11:19:17 +01:00
|
|
|
*ngFor='let voteStack of config.currentPoll.stacks'
|
2020-01-29 17:30:39 +01:00
|
|
|
>
|
|
|
|
<td >
|
2020-01-30 10:07:03 +01:00
|
|
|
|
|
|
|
<button
|
|
|
|
(click)='config.loadVoteStack(voteStack)'
|
|
|
|
*ngIf="config.currentPoll.poll.modificationPolicy === 'everybody'"
|
|
|
|
class='btn btn--primary pull-left btn--small'
|
|
|
|
>
|
|
|
|
<i class='fa fa-pencil' ></i >
|
|
|
|
</button >
|
2020-01-16 16:25:40 +01:00
|
|
|
{{voteStack.pseudo}}
|
2020-01-29 17:30:39 +01:00
|
|
|
</td >
|
|
|
|
<td *ngFor='let v of getKeys(voteStack.votes)' >
|
|
|
|
<span *ngIf='voteStack.votes[v].value' >
|
2020-01-30 11:19:17 +01:00
|
|
|
id {{v}} )
|
|
|
|
{{voteStack.votes[v].value}}
|
2020-01-29 17:30:39 +01:00
|
|
|
</span >
|
|
|
|
</td >
|
|
|
|
</tr >
|
2020-01-30 10:07:03 +01:00
|
|
|
<!-- bottom line shows each answer details-->
|
2020-01-29 17:52:04 +01:00
|
|
|
|
2020-01-29 17:30:39 +01:00
|
|
|
</tbody >
|
|
|
|
</table >
|