Vote pledge page variables
Variable Description
contentDisplays the intro blurb specified in page's admin section e.g. {{ page.vote_pledge.content }}
yes_contentDisplays the yes blurb specified in the page's admin section e.g. {{ page.vote_pledge.yes_content }}
unsure_contentDisplays the unsure blurb specified in the page's admin section e.g. {{ page.vote_pledge.unsure_content }}
no_contentDisplays the no blurb specified in the page's admin section e.g. {{ page.vote_pledge.no_content }}
yes_goalDisplays the yes goal, if one is set e.g. {{ page.vote_pledge.yes_goal }}
yes_votes_countDisplays the total number of yes votes e.g. {{ page.vote_pledge.yes_votes_count }}
unsure_votes_countDisplays the total number of unsure votes e.g. {{ page.vote_pledge.unsure_votes_count }}
no_votes_countDisplays the total number of no votes e.g. {{ page.vote_pledge.no_votes_count }}
votes_countDisplays 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_goalPercentage 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_pledgesArray of vote_pledges, everyone who pledged including yes/no/unsure. It will not include people who wanted their pledge kept private.
yes_vote_pledgesArray of vote_pledges, everyone who pledged yes
unsure_vote_pledgesArray of vote_pledges, everyone who pledged unsure
no_vote_pledgesArray of vote_pledges, everyone who pledged no
current_vote_pledgesChecks what the user has pledged e.g. {% if page.vote_pledge.current_vote_pledge.is_no? %}
yes_urlURL to go to if someone pledges yes e.g. {{ page.vote_pledge.yes_url }}
unsure_urlURL to go to if someone pledges unsure e.g. {{ page.vote_pledge.unsure_url }}
no_urlURL to go to if someone pledges no e.g. {{ page.vote_pledge.no_url }}
Do you like this page?