{# templates/share/voter_who_shares_summary_table.html #} {% load template_filters %} {% load humanize %}
| Shared By | Shared Items | Unique Viewers |
Clicks | Message | ||
|---|---|---|---|---|---|---|
| {{ forloop.counter }} |
{% if voter_who_shares_summary.we_vote_hosted_profile_image_url_medium %}
|
{% if voter_who_shares_summary.shared_by_display_name %}
{{ voter_who_shares_summary.shared_by_display_name|default_if_none:"" }}
{% elif voter_who_shares_summary.voter_we_vote_id %}
{{ voter_who_shares_summary.voter_we_vote_id }}
{% endif %}
{% if voter_who_shares_summary.shared_by_state_code %}
- {{ voter_who_shares_summary.shared_by_state_code|default_if_none:"" }}
{% endif %}
{{ voter_who_shares_summary.date_first_shared|default_if_none:"" }} |
{# Shared Items #}
{{ voter_who_shares_summary.shared_item_list_count }}
{% if voter_who_shares_summary.shared_item_list_count == 1 %}
Item
{% else %}
Items
{% endif %}
Shared {% for shared_item in voter_who_shares_summary.shared_item_list %} {{ shared_item.date_first_shared }}: {% if shared_item.is_ballot_share %} Ballot {% elif shared_item.is_campaignx_share %} CampaignX {% elif shared_item.is_candidate_share %} Candidate {% elif shared_item.is_measure_share %} Measure {% elif shared_item.is_office_share %} Office {% elif shared_item.is_organization_share %} Organization {% elif shared_item.is_ready_share %} Ready {% elif shared_item.is_remind_contact_share %} Remind {% endif %} {{ shared_item.destination_full_url|truncatechars:34 }} {% endfor %} |
{# Unique Viewers #}
{{ voter_who_shares_summary.shared_link_clicked_unique_viewer_count|default_if_none:"" }} total
{% for shared_item in voter_who_shares_summary.shared_item_list %}
{{ shared_item.shared_link_clicked_unique_viewer_count|default_if_none:"" }} {% endfor %} |
{# Clicks #}
{{ voter_who_shares_summary.shared_link_clicked_count|default_if_none:"" }} total
{% for shared_item in voter_who_shares_summary.shared_item_list %}
{{ shared_item.shared_link_clicked_count|default_if_none:"" }} {% endfor %} |
{# Messages #}
{% for shared_item in voter_who_shares_summary.shared_item_list %}
{{ shared_item.shared_message|default_if_none:""|truncatechars:34 }} {% if shared_item.other_voter_email_address_text or shared_item.other_voter_display_name %} Sent to: {% endif %} {% if shared_item.other_voter_display_name %} {{ shared_item.other_voter_display_name }} {% endif %} {% if shared_item.other_voter_email_address_text and shared_item.other_voter_display_name %} - {% endif %} {% if shared_item.other_voter_email_address_text %} {{ shared_item.other_voter_email_address_text }} {% endif %} {% endfor %} |