From ffb9d72855263e72b277b4e459b092da77ec1d24 Mon Sep 17 00:00:00 2001 From: Joel Purra Date: Sun, 2 Feb 2014 12:16:53 +0100 Subject: [PATCH] Add a bit more fluff in template control statements --- src/templates/index.html | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/templates/index.html b/src/templates/index.html index e0ae479..dd6acad 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -16,7 +16,7 @@ } }} -{{##def.about: +{{## def.about:

European Parliament: The Corrections (ep-the-corrections) © 2014 Joel Purra.

@@ -34,14 +34,14 @@

#}} -{{##def.correctors:correctional: +{{## def.correctors:correctional: @@ -95,27 +95,27 @@

- {{#def.about}} + {{# def.about }}
- {{~it :voting:votingIndex}} -
+ {{~ it : voting : votingIndex }} +

{{? voting.dossierid }} - - {{!voting.title}} + + {{! voting.title }} {{??}} - {{!voting.title}} {{?}} - + {{! voting.title }} {{?}} +

@@ -136,23 +136,23 @@

- - - - + + + + - - - - + + + + - {{#def.correctors:voting.for.correctional}} - {{#def.correctors:voting.abstain.correctional}} - {{#def.correctors:voting.against.correctional}} + {{# def.correctors:voting.for.correctional }} + {{# def.correctors:voting.abstain.correctional }} + {{# def.correctors:voting.against.correctional }} @@ -161,7 +161,7 @@

{{~}}

- {{#def.about}} + {{# def.about }}

Votes recorded for {{? voting.dossierid }} - {{!voting.title}} - {{??}} {{!voting.title}} {{?}} at - + {{! voting.title }} + {{??}} {{! voting.title }} {{?}} at +
Total count{{!voting.for.total}}{{!voting.abstain.total}}{{!voting.against.total}}{{!(voting.for.total + voting.abstain.total + voting.against.total)}}{{! voting.for.total }}{{! voting.abstain.total }}{{! voting.against.total }}{{! (voting.for.total + voting.abstain.total + voting.against.total) }}
Corrected count{{!(voting.for.correctional ? voting.for.correctional.length : 0)}}{{!(voting.abstain.correctional ? voting.abstain.correctional.length : 0)}}{{!(voting.against.correctional ? voting.against.correctional.length : 0)}}{{!((voting.for.correctional ? voting.for.correctional.length : 0) + (voting.abstain.correctional ? voting.abstain.correctional.length : 0) + (voting.against.correctional ? voting.against.correctional.length : 0))}}{{! (voting.for.correctional ? voting.for.correctional.length : 0) }}{{! (voting.abstain.correctional ? voting.abstain.correctional.length : 0) }}{{! (voting.against.correctional ? voting.against.correctional.length : 0) }}{{! ((voting.for.correctional ? voting.for.correctional.length : 0) + (voting.abstain.correctional ? voting.abstain.correctional.length : 0) + (voting.against.correctional ? voting.against.correctional.length : 0)) }}
Correctors