Skip to content

Commit

Permalink
pluralization for years in office and attendance counts
Browse files Browse the repository at this point in the history
  • Loading branch information
derekeder committed Nov 18, 2023
1 parent 3b10513 commit 0d90b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chicago/templates/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>
{% if person.term_active %}
{% if tenure_start %}
<br>
<p>In office since <strong>{{ tenure_start }}</strong> ({{ person.years_in_office }} years)</p>
<p>In office since <strong>{{ tenure_start }}</strong> ({{ person.years_in_office }} year{% if person.years_in_office > 1 %}s{% endif %})</p>
{% endif %}
{% else %}
<br>
Expand Down Expand Up @@ -170,7 +170,7 @@ <h3>Committees</h3>

{% if request.GET.view == 'attendance' %}
<h2>{{person.name}} has {{ attendance_percent }} attendance</h2>
<p>Attended {{attendance_present}} events and absent from {{attendance_absent}} events in the current legislative session</p>
<p>Attended {{attendance_present}} meeting{% if attendance_present != 1 %}s{% endif %} and absent from {{attendance_absent}} meeting{% if attendance_absent != 1 %}s{% endif %} in the current legislative session</p>

<div class="table-responsive">
<table class='table'>
Expand Down

0 comments on commit 0d90b05

Please sign in to comment.