{% extends "base_widget.html" %} {% load extras %} {% load static %} {% block title %}{{ legislation.friendly_name }}{% endblock %} {% block content %}

{{ legislation.friendly_name }} {{ legislation.inferred_status | inferred_status_label | safe }}

{% if legislation.topics %}

{% for tag in legislation.topics %} {{ tag }} {% endfor %}

{% endif %}

{{ legislation.listing_description|short_blurb }}

{% if legislation.sponsorships.all %}

Sponsors
{{legislation.sponsorships.all|length}}

Primary sponsor
{% for s in legislation.sponsorships.all %} {% if s.is_primary %} {{ s.person.link_html|safe }} {% endif %} {% endfor %}

{% endif %}
{% if actions %} {% with actions|first as most_recent_action %}

Latest activity: {{most_recent_action.date|date:'n/d/y'}}
{{most_recent_action.description | remove_action_subj}} {% if most_recent_action.related_organization %} to {{ most_recent_action.related_organization.link_html|safe }} {% endif %} by {{ most_recent_action.organization.link_html|safe }}

{% endwith %} {% endif %}
{% endblock %}