Endorsement page variables
Variable | Description |
---|---|
content | The endorsement text itself, in HTML e.g. {{ page.endorsement.content }} |
content_text | The endorsement text itself, in Text e.g. {{ page.endorsement.content_text }} |
intro | Intro to endorsement e.g. {{ page.endorsement.intro }} |
goal | Displays goal for endorsement if one is set e.g. {{ page.endorsement.goal }} |
endorsements_count | Total number of signatures for endorsement e.g. {{ page.endorsement.signatures_count | number_with_commas }} |
has_goal? | Checks if the endorsement has a goal set eg {% if page.endorsement.has_goal? %} {% endif %} |
has_met_goal? | Checks if the endorsement goal has been met e.g. {% if page.endorsement.has_met_goal? %} {% endif %} |
percent_of_goal | Percent of goal met e.g. {{ page.endorsement.percent_of_goal }} |
is_volunteer? | Checks if endorsement is configured to ask for volunteers |
is_image? | Ask for an image to upload? e.g. {% if page.endorsement.is_image? %}{% endif %} |
require_image? | Is an image required? Like for an image only endorsement e.g. {% if page.endorsement.require_image? %}{% endif %} |
is_address? | Checks if endorsement is configured to ask for an address |
require_address? | Checks if an address is required to sign endorsement e.g. See page.endorsement.require_address? variable in is_address? example above |
is_endorsed? | Checks if the person has already endorsed= e.g. {% if page.endorsement.is_endorsed? %} |
current_endorsement | If the current user has endorsed, useful for deleting it e.g. {{ page.endorsement.current_endorsement | delete_link message: "Remove endorsement" }} |
endorsements | Array of endorsements done from this page, sorted by most recent e.g. {% for endorsement in page.endorsement.endorsements %}{{ endorsement.signup.published_name }}{% endfor %} |
endorsements_with_images | Array of endorsements that have images |
featured_endorsements | Array of endorsements that have been featured |
featured_endorsements_with_images | Array of endorsements that have images and have been featured |
featured_endorsements_without_images | Array of endorsements that don't have images and have been featured |
organization_endorsements | Array of endorsements from organizations |
organization_endorsements_with_images | Array of endorsements from organizations with images |
featured_organization_endorsements | Array of endorsements from organizations that have been featured |
featured_organization_endorsements_with_images | Array of endorsements from organizations with images that have been featured |
recent_endorsers | array of signup objects |
recent_endorsers_with_pictures | array of signup objects |
random_endorsers | array of signup objects |
random_endorsers_with_pictures | array of signup objects |