{# templates/candidate/candidate_list.html #} {% extends "template_base.html" %} {% block title %}Candidates{% endblock %} {% block content %} {% load template_filters %} {% load humanize %}
| Live? | Election Name | Date | Google Civic ID | Offices{% if election.offices_without_candidates_count %} (w/o Candidates){% endif %} |
{% if show_election_statistics %}
Candidates{% if election.candidates_without_photo_count %} (w/o Photos){% endif %} |
Measures | Ballot Locations |
Voter Guides (Public Positions) |
{% endif %}
|
|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {% if election.include_in_list_for_voters %}Yes{% endif %}{% if election.include_in_list_for_voters and election.election_preparation_finished %}, {% endif %} {% if election.election_preparation_finished %}DATA{% endif %}{% if election.include_in_list_for_voters or election.election_preparation_finished and election.candidate_photos_finished %}, {% endif %} {% if election.candidate_photos_finished %}PHOTOS{% endif %} |
{% if election.id %}
{{ election.election_name }}
{% endif %}
{% if election.internal_notes %}
{{ election.internal_notes|default_if_none:""|truncatechars:50 }} {% endif %} |
{{ election.election_day_text }} {% if election.days_until_election > 0 %} (in {{ election.days_until_election }} days){% endif %} | {{ election.google_civic_election_id }} | {% if not show_election_statistics and election.office_count %} {{ election.office_count|default_if_none:"" }} {% endif %} {% if election.offices_with_candidates_count %} {{ election.offices_with_candidates_count|default_if_none:"" }} {% endif %} {% if election.offices_without_candidates_count %} ({{ election.offices_without_candidates_count|default_if_none:"" }}) {% endif %} | {% if show_election_statistics %}
{% if election.candidate_count %}
{{ election.candidate_count|default_if_none:"" }}
{% endif %}
{% if election.candidates_without_photo_count %}
({{ election.candidates_without_photo_count|default_if_none:"" }}
{% if election.candidates_without_photo_percentage %}
: {{ election.candidates_without_photo_percentage|floatformat:"0" }}%{% endif %})
{% endif %}
{% if election.candidate_count %}
open json {% endif %} |
{% if election.measure_count %} {{ election.measure_count|default_if_none:"" }} {% endif %} | {% if election.ballot_returned_count %}{{ election.ballot_returned_count|default_if_none:"" }} {% if election.ballot_location_display_option_on_count %} / {{ election.ballot_location_display_option_on_count|default_if_none:"" }}{% endif %} {% endif %} {% if election.batches_not_processed %} {% if election.batches_not_processed_batch_set_id %} ({{ election.batches_not_processed|default_if_none:"" }}) {% else %} ({{ election.batches_not_processed|default_if_none:"" }}) {% endif %} {% endif %} | {% if election.voter_guides_count %} {{ election.voter_guides_count|default_if_none:"" }} {% endif %} {% if election.public_positions_count %} ({{ election.public_positions_count|default_if_none:"" }}) {% endif %} | {% endif %}
| Candidate Name | State | {% if not google_civic_election_id %}Election | {% endif %}Office | Twitter Handle | Google Search Results | Website / Facebook / Instagram / Email | IDs | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter|add:candidate_count_start }} |
{% if candidate.candidate_photo_url %}
|
{{ candidate.candidate_name }}
{% if candidate.withdrawn_from_election %}
Withdrew {% if candidate.withdrawal_date %}({{ candidate.withdrawal_date }}){% endif %} {% endif %} {% if candidate.do_not_display_on_ballot %} Don't Display on Ballot {% endif %} {{ candidate.we_vote_id }} {% if candidate.politician_we_vote_id %} {{ candidate.politician_we_vote_id }} {% else %} (no politician link) {% endif %} {% if candidate.linked_campaignx_we_vote_id %} {{ candidate.linked_campaignx_we_vote_id }} {% endif %} {% if candidate.ballotpedia_candidate_summary %} {{ candidate.ballotpedia_candidate_summary|default_if_none:""|truncatechars:50 }} {% endif %} |
{{ candidate.get_candidate_state }} | {% if not google_civic_election_id %}
{{ candidate.election.election_name }} - {{ candidate.election.google_civic_election_id }}, {{ candidate.election.election_day_text }}
{% if candidate.supporters_count %}
supporters_count: {{ candidate.supporters_count }}
{% endif %}
{% if candidate.ocd_division_id %}
{{ candidate.ocd_division_id }}
{% endif %}
|
{% endif %}
{% if candidate.office %}
{{ candidate.office.office_name }}
{{ candidate.office.we_vote_id }} {% if candidate.office.district_name or candidate.office.district_id %} {% endif %} {% if candidate.office.district_name %} {{ candidate.office.district_name }} {% endif %} {% if candidate.office.district_id %} - District {{ candidate.office.district_id }} {% endif %} {% if candidate.office.district_name or candidate.office.district_id %} {% endif %} {% else %} (office missing) {% endif %} {% if candidate.is_battleground_race %} Competitive {% endif %} |
{% if candidate.candidate_twitter_handle %}
{{ candidate.candidate_twitter_handle }} ({{ candidate.twitter_followers_count|intcomma }} followers) {% else %} {% if candidate.candidate_merge_possibility %}
|
{% if candidate.google_search_merge_possibility %}
{% if not candidate.google_search_merge_possibility.chosen_and_updated %}
{{ candidate.google_search_merge_possibility.item_link|default_if_none:"" }} {{ candidate.google_search_merge_possibility.item_snippet|truncatechars:400 }} {% if candidate.google_search_merge_possibility.likelihood_score >= 50 %} {% endif %} {% else %} {% endif %} {% elif candidate.no_google_possibilities_found %}
|
{% if candidate.candidate_url %}{{ candidate.candidate_url }} {% endif %} {% if candidate.candidate_contact_form_url %}{{ candidate.candidate_contact_form_url }} {% endif %} {% if candidate.facebook_url %}{{ candidate.facebook_url }} {% endif %} {% if candidate.instagram_url %}{{ candidate.instagram_url }} {% endif %} {% if candidate.candidate_email %}{{ candidate.candidate_email }}{% endif %} |
{% if candidate.ballotpedia_candidate_id %}
{% if candidate.ballotpedia_candidate_url %}
BP: {{ candidate.ballotpedia_candidate_id|default_if_none:"" }}
{% else %}
BP: {{ candidate.ballotpedia_candidate_id|default_if_none:"" }}
{% endif %}
{% endif %} {% if candidate.vote_smart_id %} Vote Smart: {{ candidate.vote_smart_id|default_if_none:"" }} {% endif %} {% if candidate.ctcl_uuid %}CTCL: {{ candidate.ctcl_uuid|default_if_none:"" }} {% endif %} {% if candidate.vote_usa_politician_id %}{{ candidate.vote_usa_politician_id|default_if_none:"" }} {% endif %} {% if candidate.vote_usa_office_id %}{{ candidate.vote_usa_office_id|default_if_none:"" }} {% endif %} |
{# End of NOT review_mode #} {% else %} {# The following is "review mode" #}
| Candidate Name | Twitter Count: {{ total_twitter_handles }} | Public Positions | State | Election | {% if not google_civic_election_id %}Office | {% endif %}Ballotpedia | Vote Smart | ||
| {{ forloop.counter|add:candidate_count_start }} |
{% if candidate.candidate_photo_url %}
|
{{ candidate.candidate_name }} {{ candidate.we_vote_id }} {% if candidate.politician_we_vote_id %} {{ candidate.politician_we_vote_id }} {% endif %} {% if candidate.ballotpedia_candidate_summary %} {{ candidate.ballotpedia_candidate_summary|default_if_none:""|truncatechars:50 }} {% endif %} |
{% if candidate.candidate_twitter_handle %}
{{ candidate.candidate_twitter_handle }} ({{ candidate.twitter_followers_count|intcomma }} followers) {% endif %} |
{{ candidate.positions_count|intcomma }} | {{ candidate.get_candidate_state }} | {% if not google_civic_election_id %}{{ candidate.election.election_name }} - {{ candidate.election.google_civic_election_id }} | {% endif %}{% if candidate.office %} {{ candidate.office.office_name }} {% if candidate.office.district_id %} - District {{ candidate.office.district_id }} {% endif %} {% if candidate.office.state_code %} - {{ candidate.office.state_code }} {% endif %} {% else %} (office missing) {% endif %} | {% if candidate.ballotpedia_candidate_id %} {% if candidate.ballotpedia_candidate_url %} {{ candidate.ballotpedia_candidate_id|default_if_none:"" }} {% else %} {{ candidate.ballotpedia_candidate_id|default_if_none:"" }} {% endif %} {% endif %} | {{ candidate.vote_smart_id|default_if_none:"" }} |
(no candidates found)
{% endif %}