{# templates/representative/representative_list.html #} {% extends "template_base.html" %} {% block title %}Representatives{% endblock %} {% block content %} {% load template_filters %} {% load humanize %}
| Representative Name | Office Held Name | State | Twitter Handle | Email(s) | ID(s) | Website(s) | ||
| {{ forloop.counter }} |
{% if representative.we_vote_hosted_profile_image_url_medium %}
|
{% if representative.representative_name %}{{ representative.representative_name }}{% else %}no name{% endif %}
In office: {% if representative.year_in_office_2023 %}2023 {% endif %} {% if representative.year_in_office_2024 %}2024 {% endif %} {% if representative.year_in_office_2025 %}2025 {% endif %} {% if representative.year_in_office_2026 %}2026 {% endif %} |
{{ representative.office_held_name }} {% if representative.office_held_we_vote_id %} {{ representative.office_held_we_vote_id }} {% endif %} {% if representative.ocd_division_id %} {{ representative.ocd_division_id }} {% endif %} | {{ representative.state_code }} |
{% if representative.representative_twitter_handle %}{{ representative.representative_twitter_handle }} ({{ representative.twitter_followers_count|intcomma }} followers){% endif %} |
{% if representative.representative_email %}{{ representative.representative_email }} {% endif %} {% if representative.representative_email2 %}{{ representative.representative_email2 }} {% endif %} {% if representative.representative_email3 %}{{ representative.representative_email3 }} {% endif %} | {{ representative.we_vote_id }} {% if representative.politician_we_vote_id %} - {{ representative.politician_we_vote_id }} {% endif %} | {% if representative.wikipedia_url %}{{ representative.wikipedia_url }} {% endif %} {% if representative.representative_url %}{{ representative.representative_url }} {% endif %} {% if representative.representative_url2 %}{{ representative.representative_url2 }} {% endif %} {% if representative.representative_url3 %}{{ representative.representative_url3 }} {% endif %} |
(no representatives found)
{% endif %} {% endblock %}