Index: user/des/fbce/root/admin/index.tt =================================================================== --- user/des/fbce/root/admin/index.tt (revision 236302) +++ user/des/fbce/root/admin/index.tt (revision 236303) @@ -1,45 +1,45 @@ [% PROCESS lib/html_top %] [% PROCESS lib/header %] [% WRAPPER lib/main %]

Election results

[% IF voting < 0 %]

Voting has not yet started.

[% ELSE %] [% IF voting == 0 %]

NOTE: Voting is still ongoing—these are not the final results!

[% END %] [% IF candidates.count == 0 %]

There are no candidates.

[% ELSIF voted.count == 0 %]

No votes have been cast yet.

[% ELSE %]

[% voted.count %] out of [% voters.count %] voters ([% voted.count / voters.count * 100 | format('%.1f') %]%) have cast [% votes.count %] out of [% voters.count * max_votes %] ([% votes.count / (voters.count * max_votes) * 100 | format('%.1f') %]%) votes.

[% i = 0 %] [% WHILE (candidate = results.next) %] [% i = i + 1 %] [% login = results.login %] - + - + [% END %]
Rank Votes Share Candidate
[% i %] [% candidate.votes %] [% candidate.votes / voted.count * 100 | format('%.1f') %]% [% candidate.realname | html %] ([% candidate.login %])[% candidate.realname | html %][% IF candidate.incumbent %] (incumbent)[% END %]
[% END %] [% END %] [% END %] [% PROCESS lib/footer %] [% PROCESS lib/html_bottom %] Index: user/des/fbce/root/result/index.tt =================================================================== --- user/des/fbce/root/result/index.tt (revision 236302) +++ user/des/fbce/root/result/index.tt (revision 236303) @@ -1,45 +1,45 @@ [% PROCESS lib/html_top %] [% PROCESS lib/header %] [% WRAPPER lib/main %]

Election results

[% IF voting < 0 %]

Voting has not yet started.

[% ELSIF voting == 0 %]

Voting is still ongoing.

[% ELSIF !announced %]

Voting is complete, but the results have not yet been made public.

[% ELSE %] [% IF candidates.count == 0 %]

There were no candidates.

[% ELSIF voted == 0 %]

No votes were cast.

[% ELSE %]

[% voted %] out of [% voters.count %] voters ([% voted / voters.count * 100 | format('%.1f') %]%) have cast [% votes %] out of [% voters.count * max_votes %] ([% votes / (voters.count * max_votes) * 100 | format('%.1f') %]%) votes.

[% i = 0 %] [% WHILE (candidate = results.next) %] [% i = i + 1 %] [% login = results.login %] - + [% END %]
Rank Votes Share Candidate
[% i %] [% candidate.votes %] [% candidate.votes / voted * 100 | format('%.1f') %]%[% candidate.realname | html %] ([% candidate.login %])[% candidate.realname | html %][% IF candidate.incumbent %] (incumbent)[% END %]
[% END %] [% END %] [% END %] [% PROCESS lib/footer %] [% PROCESS lib/html_bottom %]