{% extends "base.html" %} {% block title %}{{ bill.bill_type|upper }} {{ bill.bill_number }} — Concord{% endblock %} {% block content %} {# Compute the most recent fetched_at across tier-1 + tier-2 sections. #} {%- set tier2_stamps = [bill.cosponsors_fetched_at, bill.actions_fetched_at, bill.subjects_fetched_at, bill.titles_fetched_at, bill.summaries_fetched_at] -%} {%- set updated_at = bill.fetched_at -%} {%- for stamp in tier2_stamps -%} {%- if stamp and stamp > updated_at -%}{%- set updated_at = stamp -%}{%- endif -%} {%- endfor -%}
{{ bill.bill_type|upper }} {{ bill.bill_number }} · {{ bill.congress }}th Congress

{{ bill.title }}

{% if enrichment_enabled and enrichment_state %}
{% include "bills/" + enrichment_state + ".html" %}
{% endif %} {% if bill.latest_action_date or bill.latest_action_text %}

Latest action

{% if bill.latest_action_date %} {{ bill.latest_action_date }} — {% endif %} {{ bill.latest_action_text or "—" }}

{% endif %}

Sponsor

{% if bill.sponsor_bioguide_id %} {% if bill.sponsor_display_name %} {{ bill.sponsor_display_name }} {% else %} Bioguide {{ bill.sponsor_bioguide_id }} (not indexed) {% endif %} {% else %} No sponsor recorded. {% endif %}
{# -- Cosponsors --------------------------------------------------- #}

Cosponsors

{% if bill.cosponsors_fetched_at is none %}
Cosponsors not yet fetched. Run concord scrape bills enrich --bill-ids {{ bill.bill_id }} to populate.
{% elif cosponsors %}
    {% for c in cosponsors %}
  • {% if c.sponsorship_withdrawn_date %} {% if c.display_name %} {{ c.display_name }} {% else %} {{ c.bioguide_id }} {% endif %} (withdrawn {{ c.sponsorship_withdrawn_date }}) {% else %} {% if c.display_name %} {{ c.display_name }} {% else %} {{ c.bioguide_id }} (not indexed) {% endif %} {% if c.is_original_cosponsor %} · original {% elif c.sponsorship_date %} · joined {{ c.sponsorship_date }} {% endif %} {% endif %}
  • {% endfor %}

Fetched {{ bill.cosponsors_fetched_at|humanize_age }}.

{% else %}

No cosponsors recorded.

Fetched {{ bill.cosponsors_fetched_at|humanize_age }}.

{% endif %}
{# -- Action history ----------------------------------------------- #}

Action history

{% if bill.actions_fetched_at is none %}
Action history not yet fetched. Run concord scrape bills enrich --bill-ids {{ bill.bill_id }} to populate.
{% elif actions %}
    {% for action in actions %} {% include "bills/_action_row.html" %} {% endfor %}

Fetched {{ bill.actions_fetched_at|humanize_age }}.

{% else %}

No actions recorded.

Fetched {{ bill.actions_fetched_at|humanize_age }}.

{% endif %}
{# -- Subjects ----------------------------------------------------- #}

Subjects

{% if bill.subjects_fetched_at is none %}
Subjects not yet fetched. Run concord scrape bills enrich --bill-ids {{ bill.bill_id }} to populate.
{% elif subjects %}
{% for s in subjects %} {{ s }} {% endfor %}

Fetched {{ bill.subjects_fetched_at|humanize_age }}.

{% else %}

No subjects assigned.

Fetched {{ bill.subjects_fetched_at|humanize_age }}.

{% endif %}
{# -- Titles ------------------------------------------------------- #}

Titles

{% if bill.titles_fetched_at is none %}
Titles not yet fetched. Run concord scrape bills enrich --bill-ids {{ bill.bill_id }} to populate.
{% elif titles %}
    {% for t in titles %}
  • {{ t.title_type }}{% if t.chamber %} · {{ t.chamber }}{% endif %}
    {{ t.title_text }}
  • {% endfor %}

Fetched {{ bill.titles_fetched_at|humanize_age }}.

{% else %}

No titles recorded.

Fetched {{ bill.titles_fetched_at|humanize_age }}.

{% endif %}
{# -- Summaries ---------------------------------------------------- #}

Summaries

{% if bill.summaries_fetched_at is none %}
Summaries not yet fetched. Run concord scrape bills enrich --bill-ids {{ bill.bill_id }} to populate.
{% elif summaries %} {% set latest_index = summaries|length - 1 %}
{% for s in summaries %}
{{ s.action_desc or s.version_code }} {% if s.action_date %}· {{ s.action_date }}{% endif %}
{{ s.summary_text|safe }}
{% endfor %}

Fetched {{ bill.summaries_fetched_at|humanize_age }}.

{% else %}

No summaries published.

Fetched {{ bill.summaries_fetched_at|humanize_age }}.

{% endif %}
{# -- Vote history -------------------------------------------------- #}

Vote history

{% if vote_history %}
    {% for v in vote_history %} {% include "_vote_row.html" %} {% endfor %}
{% else %}

No votes recorded for this bill yet.

{% endif %}

Coming in later phases

Committee path (Phase 4)
Committee referrals and reports will appear here.
Search within this bill (Phase 5)
Bill text will become searchable here.
{% endblock %}