{if !is_array($best_choices) || empty($best_choices)} {$best_choices = [0]} {/if}

{_('Votes of the poll')}

{if $admin} {foreach $slots as $id=>$slot} {/foreach} {/if} {foreach $slots as $id=>$slot} {/foreach} {foreach $votes as $vote} {* Edited line *} {if $editingVoteId == $vote->id} {foreach $vote->choices as $id=>$choice} {/foreach} {else} {* Voted line *} {foreach $vote->choices as $choice} {if $choice==2} {elseif $choice==1} {else} {/if} {/foreach} {if $active && $poll->editable} {else} {/if} {/if} {/foreach} {* Line to add a new vote *} {if $active && $editingVoteId == 0} {foreach $slots as $id=>$slot} {/foreach} {/if} {* Line displaying best moments *} {$count_bests = 0} {$max = max($best_choices)} {if $max > 0} {foreach $best_choices as $best_choice} {if $max == $best_choice} {$count_bests = $count_bests +1} {else} {/if} {/foreach} {/if}
{_('Votes of the poll')} {$poll->title}
{$slot->title|markdown}
{$vote->name}
{_('Yes')}(){_('Ifneedbe')}{_('No')} {if $admin} {/if}
{_("Addition")}{$best_choice}{$best_choice}
{* Best votes listing *} {$max = max($best_choices)} {if $max > 0}
{if $count_bests == 1}

{_("Best choice")}

{_('The best choice at this time is:')}

{elseif $count_bests > 1}

{_("Best choices")}

{_('The bests choices at this time are:')}

{/if} {$i = 0}
    {foreach $slots as $slot} {if $best_choices[$i] == $max}
  • {$slot->title|markdown:true}
  • {/if} {$i = $i+1} {/foreach}

{_('with')} {$max} {if $max==1}{_('vote')}{else}{_('votes')}{/if}.

{/if}