Vote pledge page variables
| Variable | Description |
|---|---|
| content | Displays the intro blurb specified in page's admin section e.g. {{ page.vote_pledge.content }} |
| yes_content | Displays the yes blurb specified in the page's admin section e.g. {{ page.vote_pledge.yes_content }} |
| unsure_content | Displays the unsure blurb specified in the page's admin section e.g. {{ page.vote_pledge.unsure_content }} |
| no_content | Displays the no blurb specified in the page's admin section e.g. {{ page.vote_pledge.no_content }} |
| yes_goal | Displays the yes goal, if one is set e.g. {{ page.vote_pledge.yes_goal }} |
| yes_votes_count | Displays the total number of yes votes e.g. {{ page.vote_pledge.yes_votes_count }} |
| unsure_votes_count | Displays the total number of unsure votes e.g. {{ page.vote_pledge.unsure_votes_count }} |
| no_votes_count | Displays the total number of no votes e.g. {{ page.vote_pledge.no_votes_count }} |
| votes_count | Displays the total number of votes -- yes, no, and unsure e.g. {{ page.vote_pledge.votes_count }} |
| has_yes_goal? | Checks if a goal is set e.g. {% if has_yes_goal? %} |
| has_met_yes_goal? | Checks if the goal has been met e.g. {% if page.vote_pledge.has_met_yes_goal? %} |
| percent_of_yes_goal | Percentage of goal met, for thermometer e.g. {{ page.vote_pledge.percent_of_yes_goal }} |
| is_pledged? | Checks if the user has pledged e.g. {% if page.vote_pledge.is_pledged? %} |
| vote_pledges | Array of vote_pledges, everyone who pledged including yes/no/unsure. It will not include people who wanted their pledge kept private. |
| yes_vote_pledges | Array of vote_pledges, everyone who pledged yes |
| unsure_vote_pledges | Array of vote_pledges, everyone who pledged unsure |
| no_vote_pledges | Array of vote_pledges, everyone who pledged no |
| current_vote_pledges | Checks what the user has pledged e.g. {% if page.vote_pledge.current_vote_pledge.is_no? %} |
| yes_url | URL to go to if someone pledges yes e.g. {{ page.vote_pledge.yes_url }} |
| unsure_url | URL to go to if someone pledges unsure e.g. {{ page.vote_pledge.unsure_url }} |
| no_url | URL to go to if someone pledges no e.g. {{ page.vote_pledge.no_url }} |