Skip to content

Commit

Permalink
using rows and columns styles on compare alders page for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
derekeder committed Jun 7, 2024
1 parent 1838bf7 commit 3bff57c
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions chicago/templates/compare_council_members.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>Compare Alders</h1>
</div>
<div class="col-sm-12">
<div class="table-responsive">
<table class='table' id='council-members'>
<table class='table rows-and-columns' id='council-members'>
<thead>
<tr>
<th></th>
Expand All @@ -36,17 +36,31 @@ <h1>Compare Alders</h1>
</div>
</td>
<td>
<span class="visible-xs-block small-table-header">Alder</span>
{{ person.link_html | safe }}
</td>
<td>{{ person.latest_council_membership.post.label }}</td>
<td>{{ person.years_in_office }}</td>
<td>
<span class="visible-xs-block small-table-header">Ward</span>
{{ person.latest_council_membership.post.label }}
</td>
<td>
<span class="visible-xs-block small-table-header">Years in office</span>
{{ person.years_in_office }}
</td>
<td>
<span class="visible-xs-block small-table-header">Non-routine bills sponsored</span>
<a href='/search/?q=&selected_facets=sponsorships_exact:{{person.name}}&selected_facets=topics_exact%3ANon-Routine'>
{{ person.statistics.legislation_count }} bills
</a>
</td>
<td>{{ person.statistics.attendance_percent }}</td>
<td>{{ person.caucus }}</td>
<td>
<span class="visible-xs-block small-table-header">Attendance (this session)</span>
{{ person.statistics.attendance_percent }}
</td>
<td>
<span class="visible-xs-block small-table-header">Caucus</span>
{{ person.caucus }}
</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 3bff57c

Please sign in to comment.