Skip to content
Browse files

Merge branch 'master' of github.com:sunlightlabs/openstates

  • Loading branch information...
2 parents 05fb128 + d4fab64 commit f26ddcc87c9512107827ab869c15f4c1a27a538c Paul Tagliamonte committed Aug 10, 2012
Showing with 22 additions and 3 deletions.
  1. +22 −3 site/templates/billy/web/public/bill.html
View
25 site/templates/billy/web/public/bill.html
@@ -163,10 +163,27 @@ <h1 class="withTimeline withTip" style="padding-top: 30px;">{{ bill.bill_id }}</
{% endif %} <span class="tip sponsor-type">{{ sponsor.type }}</span></li>
{% endfor %}
{% if show_all_sponsors %}
+ {% with remainder=bill.sponsors_manager.first_fifteen_remainder %}
+ {% for sponsor in remainder %}
+ {% if sponsor.leg_id %}
+ <li><a href="{{ sponsor.get_absolute_url }}">{{ sponsor.display_name }}</a>
+ {% if sponsor.active %}
+ <span class="tip sponsor-type">({{ sponsor.party }}) Dist. {{ sponsor.district }}</span>
+ {% 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. #}
+ <li><span class="sponsorName">{{ sponsor.name }}</span>
+ {% endif %}
+ {% endif %} <span class="tip sponsor-type">{{ sponsor.type }}</span></li>
+ {% endfor %}
+ {% endwith %}
{% else %}
{% with remainder=bill.sponsors_manager.first_fifteen_remainder %}
- {% if remainder %}
- <li><a class="viewMore" href="?show_all_sponsors=True">View {{ remainder|apnumber }} other{{ remainder|pluralize}}</a></li>
+ {% if remainder|length %}
+ <li><a class="viewMore" href="?show_all_sponsors=True">View {{ remainder|length|apnumber }} other{{ remainder|length|pluralize}}</a></li>
{% endif %}
{% endwith %}
{% endif %}
@@ -198,12 +215,14 @@ <h3 class="moduleTitle">Bill Text</h3>
</li>
{% endfor %}
+ </ul>
+ <div class="clear">
{% with remainder=bill.versions_remainder %}
{% if remainder %}
<a class="viewMore" href="versions/">View {{ remainder|length|apnumber }} other{{ remainder|length|pluralize}}</a></li>
{% endif %}
{% endwith %}
- </ul>
+ </div>
{% endif %}
</div>
<div class="fourCol colRt">

0 comments on commit f26ddcc

Please sign in to comment.
Something went wrong with that request. Please try again.