Signup variables
| Variable | Description | ||||||
|---|---|---|---|---|---|---|---|
| username | User name e.g. jgilliam | ||||||
| first_name | First name of signup e.g. Jim | ||||||
| last_name | Last name of signup e.g. Gilliam | ||||||
| first_name_or_friend | First name, or "Friend" if we don't have one e.g. Abe | ||||||
| full_name_or_friend | Full name or "Friend" if we don't have one e.g. Abe Lincoln | ||||||
| published_name | Published full name of signup e.g. {{ signup.published_name }} | ||||||
| published_first_name | Published first name of signup e.g. {{ signup.published_first_name }} | ||||||
| published_last_name | Published last name of signup e.g. {{ signup.published_last_name }} | ||||||
| published_name_linked | Published full name, linked to profile e.g. {{ signup.published_name_linked }} | ||||||
| published_first_name_linked | Published first name, linked to profile e.g. {{ signup.published_first_name_linked }} | ||||||
| name_or_email | Name or email of signups e.g. {{ signup.name_or_email }} | ||||||
| Email of signup e.g. jim@3dna.us | |||||||
| tags | Array of tags for this person {% if request.sorta_logged_in? and request.current_signup.tags contains "fun" %}They have the "fun" tag{% endif %} | ||||||
| tag_list | Comma separated string of tags for this person | ||||||
| submitted_address | Address as submitted by them (not normalized at all) e.g. 555 figueroa st, los angeles | ||||||
| address | Primary address of signup e.g. {{ signup.address.one_line }} | ||||||
| mailing_address | Street address of signup e.g. {{ signup.mailing_address.one_line }} | ||||||
| registered_address | Address they are registered to vote at (from Political Force) e.g. {{ signup.registered_address.one_line }} | ||||||
| work_address | Work address e.g. {{ signup.work_address.one_line }} | ||||||
| phone_number | Phone number of signup e.g. {{ signup.phone_number }} | ||||||
| work_phone_number | Work phone number of signup e.g. {{ signup.work_phone_number }} | ||||||
| mobile_number | Mobile number of signup e.g. {{ signup.mobile_number }} | ||||||
| is_opted_in? | Checks if signup is opted in e.g. {% if signup.is_opted_in? %} | ||||||
| is_supporter? | Checks if signup is e.g. {% if signup.is_opted_in? %} | ||||||
| support_level | Signup support level, 1-5 e.g. {{ signup.support_level}} | ||||||
| support_level_pretty | Signup support level wrapped in green/red background e.g. {{ signup.support_level_pretty | on_off_button_small }} | ||||||
| is_volunteer? | Checks if the signup is a volunteer e.g. {% if signup.is_volunteer? %} | ||||||
| is_volunteer_pretty | Volunteer status (includes staff/interns/etc) wrapped in green/red background e.g. {{ signup.is_volunteer_pretty | on_off_button_small }} | ||||||
| is_profile_searchable? | Checks if profile is discoverable by search engines e.g. {% if signup.is_profile_searchable? %} | ||||||
| is_profile_published? | Checks if profile is published on the site e.g. {% if signup.is_profile_published? %} | ||||||
| is_survey_question_private? | Checks if survey question answers is set to private e.g. {% if signup.is_survey_question_private? %} | ||||||
| is_leaderboardable? | Checks if they are included in leaderboards e.g. {% if signup.is_profile_private? %} | ||||||
| employer | e.g. {{ signup.employer }} | ||||||
| occupation | e.g. {{ signup.occupation }} | ||||||
| website | e.g. {{ signup.website }} | ||||||
| bio | Bio, usually this is coming from Twitter e.g. {{ signup.bio }} | ||||||
| has_website? | Checks if signup has a website e.g. {% if signup.has_website? %} | ||||||
| has_bio? | Checks if signup has a biography e.g. {% if signup.has_bio? %} | ||||||
| has_parent? | Do they have a point person? e.g. | ||||||
| has_password? | Do they have a password? e.g. {% if signup.has_password? %}{% endif %} | ||||||
| has_mobile? | Do they have a cell phone? e.g. {% if signup.has_mobile? %}{% endif %} | ||||||
| has_phone? | Do they have a phone? e.g. {% if signup.has_phone? %}{% endif %} | ||||||
| has_work_phone? | Do they have a work phone? e.g. {% if signup.has_work_phone? %}{% endif %} | ||||||
| has_full_address? | Do we have their full address? e.g. {% if signup.has_full_address? %} | ||||||
| has_donated? | Have they donated? e.g. {% if signup.has_donated? %} | ||||||
| has_twitter_authorization? | Have they connected their Twitter account? e.g. {% if signup.has_twitter_authorization? %} | ||||||
| has_facebook_authorization? | Have they connected their Facebook account? e.g. {% if signup.has_facebook_authorization? %} | ||||||
| has_twitter_info? | Is their Twitter account attached to their record? e.g. {% if has_twitter_info? %} | ||||||
| has_facebook_info? | Is their Facebook account attached to their record? e.g. {% if signup.has_facebook_info? %} | ||||||
| has_name? | Do they have a name? e.g. {% if signup.has_name? %} | ||||||
| has_email? | Do they have an email address? e.g. {% if signup.has_email? %} | ||||||
| twitter_id | Twitter ID, like 20830288 e.g. {{ signup.twitter_id }} | ||||||
| twitter_login | Twitter login, like @jgilliam e.g. {{ signup.twitter_login }}
| twitter_profile_url | Twitter profile URL e.g. {{ signup.twitter_profile_url }} | facebook_profile_url | Facebook profile URL e.g. {{ signup.facebook_profile_url }} | | facebook_profile_url_path | Facebook profile URL path /jgilliam e.g. {{ signup.facebook_profile_url_path }} | facebook_uid | Facebook UID e.g. {{ signup.facebook_uid }} |
| rule_violations_count | Number of rule violations e.g. {{ signup.rule_violations_count }} | ||||||
| is_banned? | Have they been banned? e.g. {{ signup.is_banned? }} | ||||||
| donations_amount_in_cents | How much they've donated in cents, so 2000 would be $20 | ||||||
| donations_amount_format | How much they've donated, but formatted like $20.00 | ||||||
| donations_raised_amount_in_cents | How much money they've raised | ||||||
| donations_raised_amount_format | |||||||
| donations_amount_this_cycle_in_cents | How much they've donated this cycle (only useful for political campaigns) | ||||||
| donations_amount_this_cycle_format | |||||||
| donations_raised_amount_this_cycle_in_cents | How much money they've raised this cycle (only useful for political campaigns)' | ||||||
| donations_raised_amount_this_cycle_format | |||||||
| donations_pledged_amount_in_cents | How much they've pledged | ||||||
| donations_pledged_amount_format | |||||||
| donations_amount_to_raise_in_cents | How much they are supposed to raise (goal set in control panel) | ||||||
| donations_amount_to_raise_format | |||||||
| capital_amount_in_cents | How much political capital they have, in cents, so 2000 would be 20pc | ||||||
| capital_amount_format | How much political capital they have, but formatted like 20pc | ||||||
| spent_capital_amount_in_cents | How much pc they've spent | ||||||
| spent_capital_amount_format | |||||||
| received_capital_amount_in_cents | How much pc they've received | ||||||
| received_capital_amount_format | |||||||
| membership_level_id | Membership level ID e.g. 1 | ||||||
| membership_level_name | Membership level name e.g. VIP Member | ||||||
| has_membership_level_badge | Does this membership level have a badge? e.g. true | ||||||
| membership_level_badge | Short badge text for the membership level e.g. VIP | ||||||
| membership_started_at | Date and time the membership started {{ request.current_user.membership_started_at | date: '%B %d, %Y ' }} | ||||||
| membership_expires_at | Date and time the membership will expire {{ request.current_user.membership_expires_at | date: '%B %d, %Y ' }} | ||||||
| is_member? | |||||||
| has_auto_renewing_membership? | Is this membership auto-renewing {{ request.current_user.has_auto_renewing_membership? }} | ||||||
| membership_next_bill_date | Date of next billing {{ request.current_user.membership_next_bill_date }} | ||||||
| membership_renewal_info | E.g "$10.00 every year" {{ request.current_user.membership_renewal_info }} | ||||||
| cancel_membership_url | Link to cancel membership auto-renew {{ request.current_user.cancel_membership_url }} | ||||||
| is_donor? | |||||||
| is_intern? | |||||||
| is_leader? | |||||||
| is_staff? | |||||||
| is_admin? | |||||||
| followings_count | Number of people signup is following e.g. {{ signup.followings_count }} | ||||||
| followers_count | Number of followers e.g. {{ signup.followers_count }} | ||||||
| followers_supporters_count | Number of followers who are supporters e.g. {{ signup.followers_supporters_count }} | ||||||
| followers_volunteers_count | Number of followers who are volunteers/staffers/interns e.g. {{ signup.followers_volunteers_count }} | ||||||
| followers_donors_count | Number of followers who are donors e.g. {{ signup.followers_donors_count }} | ||||||
| followers_possible_voters_count | Number of followers who could vote e.g. {{ signup.followers_possible_voters_count }} | ||||||
| followers_possible_voters_with_unknown_count | Number of followers who could vote, or at least we don't know that they can't. e.g. {{ signup.followers_possible_voters_with_unknown_count }} | ||||||
| recruits_count | Number of people signup has recruited e.g. {{ signup.recruits_count }} | ||||||
| followings_from_facebook | An array of signup objects of their top 6 Facebook friends that are now following them | ||||||
| followings_count_from_facebook | Number of people following signup from Facebook (not the number of Facebook friends) e.g. {{ signup.followings_count_from_facebook }} | ||||||
| followings_from_twitter | An array of signup objects of 6 people they are following now as a result of following them on Twitter | ||||||
| followings_count_from_twitter | Number of people following signup from Twitter (not the number of Twitter followers) e.g. {{ signup.followings_count_from_twitter }} | ||||||
| followers_from_twitter | An array of signup objects of 6 people that are following this person as a result of following them on Twitter e.g. | ||||||
| followers_count_from_twitter | Number of people signup is following from Twitter e.g. {{ signup.followers_count_from_twitter }} | ||||||
| following_ids | All following ids e.g {{ signup.following_ids }} | ||||||
| recruit_ids | All recruit ids e.g {{ signup.recruit_ids }} | ||||||
| following_page_ids | All the ids of pages they are following | ||||||
| volunteers_types | An array of volunteer_type objects, volunteer roles this person has signed up for | ||||||
| received_capital_amount_format | Total pc earned by signup, formatted for display e.g 400pc | ||||||
| spent_capital_amount_format | Total pc spent by signup, formatted for display e.g {{ signup.spent_capital_amount_format }} | ||||||
| capital_amount_format | pc balance of signup, formatted for display e.g {{ signup.capital_amount_format }} | ||||||
| received_capital_amount_in_cents | Received pc amount without a decimal. Useful in if statements e.g {% if signup.received_capital_amount_in_cents > 1000 %} | ||||||
| capital_amount_in_cents | pc balance amount without a decimal e.g {% if signup.capital_amount_in_cents > 1000 %} | ||||||
| capitals | Paginated array of capital objects for their political capital balance sheet | ||||||
| followers | Paginated array of signup objects for everyone following this person. | ||||||
| followings | Paginated array of signup objects for everyone followed by this person | ||||||
| recruits | Paginated array of signup objects for everyone this person has recruited | ||||||
| activities | Paginated array of activities objects for all this person's public activity, sorted by most recent | ||||||
| recruiting_activities | Paginated array of activitiesobjects for all the recruiting oriented activities of this person, sorted by most recent | ||||||
| profile_image | Profile image of signup (48px) e.g {{ signup.profile_image }} | ||||||
| bigger_profile_image | Bigger profile image of signup (72px) e.g {{ signup.bigger_profile_image }} | ||||||
| smaller_profile_image | Smaller profile image of signup (24px) e.g {{ signup.smaller_profile_image }} | ||||||
| profile_image_url | Just the URL of the profile image e.g | ||||||
| logout_url | URL to logout e.g {{ signup.logout_url }} | ||||||
| follow_url | URL to follow signup e.g {{ signup.follow_url }} | ||||||
| unfollow_url | URL to stop following signup e.g {{ signup.unfollow_url }} | ||||||
| profile_url | URL to signup's public profile e.g {{ signup.profile_url }} | ||||||
| full_profile_url | Full URL to signup's public profile e.g http://abeforprez.com/profiles/1-Jim-Gilliam | ||||||
| admin_url | URL to signup's admin page e.g {{ signup.admin_url }} | ||||||
| settings_url | URL to signup's settings page e.g {{ signup.settings_url }} |
