From 497762165fc3d0fedb3451b60102974eb4e9bbb4 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Mon, 15 Dec 2014 13:36:26 +0100 Subject: [PATCH] studs.tpl: Remove 4 spaces to global indentation --- tpl/studs.tpl | 445 +++++++++++++++++++++++++------------------------- 1 file changed, 223 insertions(+), 222 deletions(-) diff --git a/tpl/studs.tpl b/tpl/studs.tpl index 18b8f44..c4167e9 100644 --- a/tpl/studs.tpl +++ b/tpl/studs.tpl @@ -3,259 +3,260 @@ {block name=main}
- {* Global informations about the current poll *} + {* Global informations about the current poll *} -
-
-
-

{$poll->title}

-
-
-
- - -
+
+
+
+

{$poll->title}

+
+
+
+ +
-
-
-
-

{_("Initiator of the poll")}

-

{$poll->admin_name}

-
- +
+
+
+
+

{_("Initiator of the poll")}

+

{$poll->admin_name}

- - {if !empty($poll->comment)} -
-

{_("Description")}


-

{$poll->comment}

+ - {/if}
-
- {* Information about voting *} - - {if $poll->active} -
-

{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}

- -
- {else} -
-

{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}

- -
- {/if} - - {* Scroll left and right *} - - - {* Vote table *} + {* Information about voting *} -

{_('Votes of the poll')}

-
- - - - - - {foreach $slots as $id=>$slot} - - {for $foo=0 to ($slot->moments|count)-1} - {append var='headersM' value=$id} - {/for} + {if $poll->active} +
+

{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}

+ +
+ {else} +
+

{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}

+ +
+ {/if} + + {* Scroll left and right *} + + + + {* Vote table *} + +

{_('Votes of the poll')}

+
+
{_('Votes of the poll')} {$poll->title}
{$slot->day|date_format:'%B %Y'}
+ + + + + {foreach $slots as $id=>$slot} + + {for $foo=0 to ($slot->moments|count)-1} + {append var='headersM' value=$id} + {/for} + {/foreach} + + + + + {foreach $slots as $id=>$slot} + + {/foreach} + + + + + {$headersDCount=0} + {foreach $slots as $slot} + {foreach $slot->moments as $id=>$moment} + + {append var='headersD' value=$headersDCount} + {$headersDCount = $headersDCount+1} {/foreach} - - - - - {foreach $slots as $id=>$slot} - + {/foreach} + + + + + {foreach $votes as $vote} + + {* Edited line *} + + + + {if $editingVoteId == $vote->id} + {foreach $vote->choices as $k=>$choice} + + + {/foreach} - - - - - {$headersDCount=0} - {foreach $slots as $slot} - {foreach $slot->moments as $id=>$moment} - - {append var='headersD' value=$headersDCount} - {$headersDCount = $headersDCount+1} - {/foreach} - {/foreach} - - - - - {foreach $votes as $vote} - - {* Edited line *} + {else} - + {* Voted line *} - {if $editingVoteId == $vote->id} - {foreach $vote->choices as $k=>$choice} + {foreach $vote->choices as $k=>$choice} - - - {/foreach} - {else} - - {* Voted line *} - - {foreach $vote->choices as $k=>$choice} - - {if $choice==2} - - {else if $choice==1} - - {else} - - {/if} - - {/foreach} - - {if $poll->active && $poll->editable} - + {if $choice==2} + + {else if $choice==1} + {else} - + {/if} - {/if} - - {/foreach} - {* Line to add a new vote *} - - {if $poll->active && $editingVoteId == 0} - - - {$i = 0} - {foreach $slots as $slot} - {foreach $slot->moments as $moment} - - {$i = $i+1} - {/foreach} {/foreach} - - - {/if} - {* Line displaying best moments *} - {$count_bests = 0} - - - {$max = max($best_moments)} - {foreach $best_moments as $best_moment} - {if $max == $best_moment} - {$count_bests = $count_bests +1} - + {if $poll->active && $poll->editable} + {else} {/if} - {/foreach} + {/if} - -
{_('Votes of the poll')} {$poll->title}
{$slot->day|date_format:'%B %Y'}
{$slot->day|date_format:$date_format.txt_day}
{$moment}
{$slot->day|date_format:$date_format.txt_day}
{$vote->name} +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
{$moment}
{$vote->name} -
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
-
{_('Yes')}(){_('Ifneedbe')}{_('No')} - - - {_('Yes')}(){_('Ifneedbe')}{_('No')}
-
- - -
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
-
{_("Addition")}{$max} + + +
-
+ {/foreach} - {* Best votes listing *} + {* Line to add a new vote *} - {$max = max($best_moments)} - {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 $poll->active && $editingVoteId == 0} + + +
+ + +
+ + {$i = 0} + {foreach $slots as $slot} + {foreach $slot->moments as $moment} + +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+ + {$i = $i+1} + {/foreach} + {/foreach} + + {/if} - - {$i = 0} -
    - {foreach $slots as $slot} - {foreach $slot->moments as $moment} - {if $best_moments[$i] == $max} -
  • {$slot->day|date_format:$date_format.txt_full} - {$moment}
  • + {* Line displaying best moments *} + {$count_bests = 0} + + {_("Addition")} + {$max = max($best_moments)} + {foreach $best_moments as $best_moment} + {if $max == $best_moment} + {$count_bests = $count_bests +1} + {$max} + {else} + {/if} - {$i = $i+1} {/foreach} - {/foreach} -
-

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

-
-
+ + + +
+ + {* Best votes listing *} + + {$max = max($best_moments)} + {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} + {foreach $slot->moments as $moment} + {if $best_moments[$i] == $max} +
  • {$slot->day|date_format:$date_format.txt_full} - {$moment}
  • + {/if} + {$i = $i+1} + {/foreach} + {/foreach} +
+

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

+
+
+ {/if} + {/block} \ No newline at end of file