branch develop updated (c7f1063c -> 80383cf1)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from c7f1063c style new d243e5c0 refs #136 Méthode de vote pluis explicite new 80383cf1 fixes #136 Méthode de vote pluis explicite The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 80383cf1286b286f8744962339c8d5e9da50d268 Author: Kevin Morin <morin@codelutin.com> Date: Tue Sep 12 19:29:36 2017 +0200 fixes #136 Méthode de vote pluis explicite commit d243e5c0da76491732c3d15622effbc5f05b9a8e Author: Kevin Morin <morin@codelutin.com> Date: Tue Sep 12 18:09:48 2017 +0200 refs #136 Méthode de vote pluis explicite Summary of changes: .../src/main/web/help/voteCountingTypes-en.html | 10 ++++++++++ .../src/main/web/help/voteCountingTypes-fr.html | 10 ++++++++++ .../src/main/web/tag/poll/Settings.tag.html | 21 ++++++++++++++++++++- pollen-ui-riot-js/webpack.config.js | 1 + .../i18n/pollen-votecounting-borda_en_GB.properties | 6 +++++- .../i18n/pollen-votecounting-borda_fr_FR.properties | 6 +++++- .../pollen-votecounting-condorcet_en_GB.properties | 5 ++++- .../pollen-votecounting-condorcet_fr_FR.properties | 5 ++++- .../pollen-votecounting-coombs_en_GB.properties | 5 ++++- .../pollen-votecounting-coombs_fr_FR.properties | 5 ++++- ...len-votecounting-instant-runoff_en_GB.properties | 5 ++++- ...len-votecounting-instant-runoff_fr_FR.properties | 5 ++++- 12 files changed, 75 insertions(+), 9 deletions(-) create mode 100644 pollen-ui-riot-js/src/main/web/help/voteCountingTypes-en.html create mode 100644 pollen-ui-riot-js/src/main/web/help/voteCountingTypes-fr.html -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit d243e5c0da76491732c3d15622effbc5f05b9a8e Author: Kevin Morin <morin@codelutin.com> Date: Tue Sep 12 18:09:48 2017 +0200 refs #136 Méthode de vote pluis explicite --- .../main/resources/i18n/pollen-votecounting-borda_en_GB.properties | 6 +++++- .../main/resources/i18n/pollen-votecounting-borda_fr_FR.properties | 6 +++++- .../resources/i18n/pollen-votecounting-condorcet_en_GB.properties | 5 ++++- .../resources/i18n/pollen-votecounting-condorcet_fr_FR.properties | 5 ++++- .../main/resources/i18n/pollen-votecounting-coombs_en_GB.properties | 5 ++++- .../main/resources/i18n/pollen-votecounting-coombs_fr_FR.properties | 5 ++++- .../i18n/pollen-votecounting-instant-runoff_en_GB.properties | 5 ++++- .../i18n/pollen-votecounting-instant-runoff_fr_FR.properties | 5 ++++- 8 files changed, 34 insertions(+), 8 deletions(-) diff --git a/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_en_GB.properties b/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_en_GB.properties index 2ce41e53..25c9fc8e 100644 --- a/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_en_GB.properties +++ b/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_en_GB.properties @@ -1,4 +1,8 @@ pollen.error.vote.invalidBordaVoteValue=The value '%2$s' of vote for choice %1$s is not valid, only integer values are authorized. pollen.voteCountingType.borda=Borda -pollen.voteCountingType.borda.help=Rank choices by preference order from 1 to N (1\=favorite).<br/>Only the rank is taken into account, not the values. Two choices can have the same value.<br/><a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_Borda' target\='\#doc'>More about this method</a> +pollen.voteCountingType.borda.help=Rank choices by preference order from 1 to N (1\=favorite).\ + <br/>Only the rank is taken into account, not the values. Two choices can have the same value.\ + <br/>For each vote, points are won by the choices according to their rank (like for the Eurovision contest); \ + the winner is the choice which have the most points.\ + <br/>More about this method: <a href\='http\://en.wikipedia.org/wiki/Borda_count' target\='\#doc'>http\://en.wikipedia.org/wiki/Borda_count</a> pollen.voteCountingType.borda.shortHelp=Rank choices by preference order from 1 to N (1\=favorite). diff --git a/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_fr_FR.properties b/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_fr_FR.properties index f17950e0..4b33d7ba 100644 --- a/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_fr_FR.properties +++ b/pollen-votecounting-borda/src/main/resources/i18n/pollen-votecounting-borda_fr_FR.properties @@ -1,4 +1,8 @@ pollen.error.vote.invalidBordaVoteValue=La valeur du vote '%2$s' pour le choix %1$s n'est pas correcte, seul des valeurs entières sont autorisées. pollen.voteCountingType.borda=Borda -pollen.voteCountingType.borda.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).<br/> Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.<br/><a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_Borda' target\='\#doc'>Pour en savoir plus</a> +pollen.voteCountingType.borda.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).\ + <br/> Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.\ + <br/>Pour chaque vote, on attribue des points aux choix en fonction de leur rang (comme pour le concours de l'Eurovision) ; \ + le gagnant est le choix avec le plus de points.\ + <br/>Pour en savoir plus : <a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_Borda' target\='\#doc'>http\://fr.wikipedia.org/wiki/M%C3%A9thode_Borda</a> pollen.voteCountingType.borda.shortHelp=Classer les choix par ordre de préférence de 1 à N (1\=préféré). diff --git a/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_en_GB.properties b/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_en_GB.properties index ff895fe0..63d6ccb2 100644 --- a/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_en_GB.properties +++ b/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_en_GB.properties @@ -1,4 +1,7 @@ pollen.error.vote.invalidCondorcetVoteValue=The value '%2$s' of vote for choice %1$s is not valid, only integer values are authorized. pollen.voteCountingType.condorcet=Condorcet -pollen.voteCountingType.condorcet.help=Rank choices by preference order from 1 to N (1\=favorite).<br/>Only the rank is taken into account, not the values. Two choices can have the same value.<br/><a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_Condorcet' target\='\#doc'>More about this method</a> +pollen.voteCountingType.condorcet.help=Rank choices by preference order from 1 to N (1\=favorite).\ + <br/>Only the rank is taken into account, not the values. Two choices can have the same value.\ + <br/>In this method, the winner is the choice which wins the most fights against the other choices.\ + <br/>More about this method: <a href\='http\://en.wikipedia.org/wiki/Condorcet_method' target\='\#doc'>http\://en.wikipedia.org/wiki/Condorcet_method</a> pollen.voteCountingType.condorcet.shortHelp=Rank choices by preference order from 1 to N (1\=favorite). diff --git a/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_fr_FR.properties b/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_fr_FR.properties index 726c008a..1f3d6384 100644 --- a/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_fr_FR.properties +++ b/pollen-votecounting-condorcet/src/main/resources/i18n/pollen-votecounting-condorcet_fr_FR.properties @@ -1,4 +1,7 @@ pollen.error.vote.invalidCondorcetVoteValue=La valeur du vote '%2$s' pour le choix %1$s n'est pas correcte, seul des valeurs entières sont autorisées. pollen.voteCountingType.condorcet=Condorcet -pollen.voteCountingType.condorcet.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).<br/>Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.<br/><a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_Condorcet' target\='\#doc'>Pour en savoir plus</a> +pollen.voteCountingType.condorcet.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).\ + <br/>Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.\ + <br/>Dans cette méthode, le gagnant est celui qui remporte le plus de combats par rapport aux autres choix.\ + <br/>Pour en savoir plus : <a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_Condorcet' target\='\#doc'>http\://fr.wikipedia.org/wiki/M%C3%A9thode_Condorcet</a> pollen.voteCountingType.condorcet.shortHelp=Classer les choix par ordre de préférence de 1 à N (1\=préféré). diff --git a/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_en_GB.properties b/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_en_GB.properties index 5d47279f..042ac609 100644 --- a/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_en_GB.properties +++ b/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_en_GB.properties @@ -1,4 +1,7 @@ pollen.error.vote.invalidCoombsVoteValue=The value '%2$s' of vote for choice %1$s is not valid, only integer values are authorized. pollen.voteCountingType.coombs=Coombs -pollen.voteCountingType.coombs.help=Rank choices by preference order from 1 to N (1\=favorite).<br/>Only the rank is taken into account, not the values. Two choices can have the same value.<br/><a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_de_Coombs' target\='\#doc'>More about this method</a> +pollen.voteCountingType.coombs.help=Rank choices by preference order from 1 to N (1\=favorite).\ + <br/>Only the rank is taken into account, not the values. Two choices can have the same value.\ + <br/>In this method, the choice which is last the most times is eliminated round by round until only one remains.\ + <br/>More about this method: <a href\='http\://en.wikipedia.org/wiki/Coombs%27_method' target\='\#doc'>http\://en.wikipedia.org/wiki/Coombs%27_method</a> pollen.voteCountingType.coombs.shortHelp=Rank choices by preference order from 1 to N (1\=favorite). diff --git a/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_fr_FR.properties b/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_fr_FR.properties index dbb0e04d..ed836b57 100644 --- a/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_fr_FR.properties +++ b/pollen-votecounting-coombs/src/main/resources/i18n/pollen-votecounting-coombs_fr_FR.properties @@ -1,4 +1,7 @@ pollen.error.vote.invalidCoombsVoteValue=La valeur du vote '%2$s' pour le choix %1$s n'est pas correcte, seul des valeurs entières sont autorisées. pollen.voteCountingType.coombs=Coombs -pollen.voteCountingType.coombs.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).<br/>Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.<br/><a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_de_Coombs' target\='\#doc'>Pour en savoir plus</a> +pollen.voteCountingType.coombs.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).\ + <br/>Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.\ + <br/>Dans cette méthode, le choix qui arrive le plus souvent en dernier de liste est éliminé à chaque tour, jusqu'à ce qu'il n'en reste qu'un.\ + <br/>Pour en savoir plus : <a href\='http\://fr.wikipedia.org/wiki/M%C3%A9thode_de_Coombs' target\='\#doc'>http\://fr.wikipedia.org/wiki/M%C3%A9thode_de_Coombs</a> pollen.voteCountingType.coombs.shortHelp=Classer les choix par ordre de préférence de 1 à N (1\=préféré). diff --git a/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_en_GB.properties b/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_en_GB.properties index e7e6fef5..5fa3d32b 100644 --- a/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_en_GB.properties +++ b/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_en_GB.properties @@ -1,4 +1,7 @@ pollen.error.vote.invalidInstantRunoffVoteValue=The value '%2$s' of vote for choice %1$s is not valid, only integer values are authorized. pollen.voteCountingType.instantRunoff=Instant Runoff -pollen.voteCountingType.instantRunoff.help=Rank choices by preference order from 1 to N (1\=favorite).<br/>Only the rank is taken into account, not the values. Two choices can have the same value.<br/><a href\='http\://fr.wikipedia.org/wiki/Vote_alternatif' target\='\#doc'>More about this method</a> +pollen.voteCountingType.instantRunoff.help=Rank choices by preference order from 1 to N (1\=favorite).\ + <br/>Only the rank is taken into account, not the values. Two choices can have the same value.\ + <br/>In this method, the choice which is first the least times is eliminated round by round until only one remains.\ + <br/>More about this method: <a href\='http\://en.wikipedia.org/wiki/Instant-runoff_voting' target\='\#doc'>http\://en.wikipedia.org/wiki/Instant-runoff_voting</a> pollen.voteCountingType.instantRunoff.shortHelp=Rank choices by preference order from 1 to N (1\=favorite). diff --git a/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_fr_FR.properties b/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_fr_FR.properties index cdec78b7..68246475 100644 --- a/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_fr_FR.properties +++ b/pollen-votecounting-instant-runoff/src/main/resources/i18n/pollen-votecounting-instant-runoff_fr_FR.properties @@ -1,4 +1,7 @@ pollen.error.vote.invalidInstantRunoffVoteValue=La valeur du vote '%2$s' pour le choix %1$s n'est pas correcte, seul des valeurs entières sont autorisées. pollen.voteCountingType.instantRunoff=Vote alternatif -pollen.voteCountingType.instantRunoff.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).<br/>Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.<br/><a href\='http\://fr.wikipedia.org/wiki/Vote_alternatif' target\='\#doc'>Pour en savoir plus</a> +pollen.voteCountingType.instantRunoff.help=Classer les choix par ordre de préférence de 1 à N (1\=préféré).\ + <br/>Seul l'ordre des choix compte, peu importe les valeurs. Deux choix peuvent avoir la même valeur.\ + <br/>Dans cette méthode, le choix qui arrive le moins souvent en premier de liste est éliminé à chaque tour, jusqu'à ce qu'il n'en reste qu'un.\ + <br/>Pour en savoir plus : <a href\='http\://fr.wikipedia.org/wiki/Vote_alternatif' target\='\#doc'>http\://fr.wikipedia.org/wiki/Vote_alternatif</a> pollen.voteCountingType.instantRunoff.shortHelp=Classer les choix par ordre de préférence de 1 à N (1\=préféré). -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 80383cf1286b286f8744962339c8d5e9da50d268 Author: Kevin Morin <morin@codelutin.com> Date: Tue Sep 12 19:29:36 2017 +0200 fixes #136 Méthode de vote pluis explicite --- .../src/main/web/help/voteCountingTypes-en.html | 10 ++++++++++ .../src/main/web/help/voteCountingTypes-fr.html | 10 ++++++++++ .../src/main/web/tag/poll/Settings.tag.html | 21 ++++++++++++++++++++- pollen-ui-riot-js/webpack.config.js | 1 + 4 files changed, 41 insertions(+), 1 deletion(-) diff --git a/pollen-ui-riot-js/src/main/web/help/voteCountingTypes-en.html b/pollen-ui-riot-js/src/main/web/help/voteCountingTypes-en.html new file mode 100644 index 00000000..fe504edd --- /dev/null +++ b/pollen-ui-riot-js/src/main/web/help/voteCountingTypes-en.html @@ -0,0 +1,10 @@ +<p> + Pour mieux comprendre les différents types de scrutin, nous vous conseillons de regarder cette petite vidéo <em>Monsieur le président, avez-vous vraiment gagné cette élection ?</em> réalisée par <em>La statistique expliquée à mon chat</em> : +</p> +<div style="margin: 10px auto;"> + <video controls id="voteCountingTypesHelpVideo"> + <source src="/help/voteCountingType/voteCountingTypes.webm" type="video/webm"> + <source src="/help/voteCountingType/voteCountingTypes.mp4" type="video/mp4"> + Votre navigateur ne supporte pas la balise vidéo. Pour la voir, recherchez <em>Monsieur le président, avez-vous vraiment gagné cette élection ?</em> sur votre moteur de recherche. + </video> +</div> \ No newline at end of file diff --git a/pollen-ui-riot-js/src/main/web/help/voteCountingTypes-fr.html b/pollen-ui-riot-js/src/main/web/help/voteCountingTypes-fr.html new file mode 100644 index 00000000..b77df1eb --- /dev/null +++ b/pollen-ui-riot-js/src/main/web/help/voteCountingTypes-fr.html @@ -0,0 +1,10 @@ +<p> + Pour mieux comprendre les différents types de scrutin, nous vous conseillons de regarder cette petite vidéo <em>Monsieur le président, avez-vous vraiment gagné cette élection ?</em> réalisée par <em>La statistique expliquée à mon chat</em> : +</p> +<div style="margin: 10px auto;"> + <video controls id="voteCountingTypesHelpVideo"> + <source src="/help/voteCountingTypes.webm" type="video/webm"/> + <source src="/help/voteCountingTypes.mp4" type="video/mp4"/> + Votre navigateur ne supporte pas la balise vidéo. Pour la voir, recherchez <em>Monsieur le président, avez-vous vraiment gagné cette élection ?</em> sur votre moteur de recherche. + </video> +</div> \ No newline at end of file diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Settings.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Settings.tag.html index 41456b7e..91e296ad 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Settings.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Settings.tag.html @@ -67,7 +67,11 @@ require("../components/date-time-picker.tag.html"); <div class="settings-options-row"> <div class="form-section"> - <h4><i class="fa fa-cog"></i> {__.nav_voteCountingType}</h4> + <h4> + <i class="fa fa-cog"></i> + {__.nav_voteCountingType} + <i class="info-label fa fa-question-circle" aria-hidden="true" onclick="{toggleVoteCountingTypeHelp}"></i> + </h4> <div class="o-form-element select-or-radio"> <fieldset class="o-fieldset choice-radio" disabled={form.hasVotes || opts.form.model.closed}> @@ -384,6 +388,21 @@ require("../components/date-time-picker.tag.html"); this.updateVoteCountingTypeHelp(); }); + this.toggleVoteCountingTypeHelp = () => { + fetch("/help/voteCountingTypes-" + this.session.locale + ".html").then(response => { + return response.text(); + }) + .then(content => { + return this.info(this.__.nav_voteCountingType, content, null, "info"); + }).then(() => { + let video = document.getElementById("voteCountingTypesHelpVideo"); + if (video) { + video.pause(); + } + }); + + }; + this.updateVoteCountingTypeHelp = () => { this.refs.voteCountingTypeHelper.innerHTML = this.voteCountingTypes.get(this.form.model.voteCountingType.toString()).helper; this.update(); diff --git a/pollen-ui-riot-js/webpack.config.js b/pollen-ui-riot-js/webpack.config.js index 11ae81fb..842da4d2 100644 --- a/pollen-ui-riot-js/webpack.config.js +++ b/pollen-ui-riot-js/webpack.config.js @@ -37,6 +37,7 @@ module.exports = { return content.toString().replace("POLLEN_API_URL", JSON.stringify(process.env.POLLEN_SERVER_CONTEXT || "http://opensource.brickred.com:8888/pollen-rest-api")); }}, {from: "src/main/web/index.html"}, + {from: "src/main/web/help", to: "help"}, {from: "src/main/web/home", to: "home"}, {from: "src/main/web/robots.txt"}, {from: "src/main/web/img", to: "img"}, -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm