Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use full legislator objects for sponsor list

  • Loading branch information...
commit 7def5ab5bf2041b259c5175edf903d724d57a70a 1 parent adbf360
@twneale twneale authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 site/templates/billy/web/public/bill.html
View
12 site/templates/billy/web/public/bill.html
@@ -58,17 +58,15 @@ <h2 class="withTimeline withTip">{{ metadata.name }} {{bill.type_string|title}}
{% for sponsor in sponsors %}
{% if sponsor.leg_id %}
- <li><a href="{% url 'legislator' abbr sponsor.leg_id '' %}">{{ sponsor.name }}</a>
- {% with legislator=sponsor.legislator %}
- {% if legislator.active %}
- ({{ legislator.party }}) {{ legislator.district }}
- {% endif %}
- {% endwith %}
+ <li><a href="{{ sponsor.get_absolute_url }}">{{ sponsor.display_name }}</a>
+ {% if sponsor.active %}
+ ({{ sponsor.party }}) {{ sponsor.district }}
+ {% endif %}
{% else %}
{% if sponsor.committee_id %}
<li><a href="{% url 'committee' abbr sponsor.committee_id %}">{{ sponsor.name }}</a>
{% else %}
- {# Sponsor had no leg_id or was inactive. Might be a committee. #}
+ {# Sponsor had no leg_id or was inactive. #}
<li>{{ sponsor.name }}
{% endif %}
{% endif %} <span class="tip sideNote">{{ sponsor.type }}</span></li>
Please sign in to comment.
Something went wrong with that request. Please try again.