From 313c1225d021bafaff17db17ccd59cafe9239d70 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Thu, 1 Jan 2015 23:06:35 +0100 Subject: [PATCH] Vote pages: display number of votes below every slot --- tpl/part/vote_table_classic.tpl | 10 +++++----- tpl/part/vote_table_date.tpl | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index ecddafb..bf0a0d2 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -145,9 +145,9 @@ {foreach $best_choices as $best_choice} {if $max == $best_choice} {$count_bests = $count_bests +1} - {$max} + {$best_choice} {else} - + {$best_choice} {/if} {/foreach} @@ -165,11 +165,11 @@ {if $count_bests == 1}

{_("Best choice")}

-

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

+

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

{elseif $count_bests > 1}

{_("Best choices")}

-

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

+

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

{/if} @@ -182,7 +182,7 @@ {$i = $i+1} {/foreach} -

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

+

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

{/if} \ No newline at end of file diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 5faacaa..0fdb8fc 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -175,9 +175,9 @@ {foreach $best_choices as $best_moment} {if $max == $best_moment} {$count_bests = $count_bests +1} - {$max} + {$best_moment} {else} - + {$best_moment} {/if} {/foreach} @@ -195,11 +195,11 @@ {if $count_bests == 1}

{_("Best choice")}

-

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

+

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

{elseif $count_bests > 1}

{_("Best choices")}

-

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

+

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

{/if} @@ -214,7 +214,7 @@ {/foreach} {/foreach} -

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

+

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

{/if} \ No newline at end of file