diff --git a/index.html b/index.html
index 33ebb75..c86c9d3 100644
--- a/index.html
+++ b/index.html
@@ -287,13 +287,17 @@
Propostas |
|
|
- Pontuação |
+ Apoio |
+ Participacao |
+ |
{{#each articles}}
|
{{votes_for}} |
{{votes_against}} |
+ {{#apoio .}}{{/apoio}} |
+ {{#participacao .}}{{/participacao}} |
{{#score .}}{{/score}} |
{{/each}}
diff --git a/js/handlebars-helpers.js b/js/handlebars-helpers.js
index d90f549..df3ec76 100644
--- a/js/handlebars-helpers.js
+++ b/js/handlebars-helpers.js
@@ -65,6 +65,16 @@ define(['handlebars'], function(Handlebars){
return article.votes_for - article.votes_against;
});
+ Handlebars.registerHelper('apoio', function(article) {
+ // return (article.votes_for - article.votes_against)/(article.countViews);
+ return 0;
+ });
+
+ Handlebars.registerHelper('participacao', function(article) {
+ // return (article.votes_for + article.votes_against)/(article.countViews);
+ return 0;
+ });
+
Handlebars.registerHelper('select_proposal', function(proposals, category_slug, selected_id) {
var ret = ''
ret = ret + '