Skip to content

Commit edd8427

Browse files
committed
fix: pluralize dashboard message
1 parent d269f5c commit edd8427

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

intranet/templates/dashboard/dashboard.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,15 @@ <h3>
217217
{% endif %}
218218
{% if already_teacher_approved %}
219219
{% if self_awaiting_teacher %}<br>{% endif %}
220-
<h3> <i class="fas fa-info-circle"></i> There {% if already_teacher_approved|length == 1 %}is 1 announcement request{% else %}are {{ already_teacher_approved|length }} announcement requests{% endif %} you have approved and {% if already_teacher_approved|length == 1 %}is{% else %}are{% endif %} pending admin approval</h3>
220+
<h3>
221+
<i class="fas fa-info-circle"></i>
222+
There {{ already_teacher_approved|length|pluralize:"is,are" }} {{ already_teacher_approved|length }} announcement request{{ already_teacher_approved|length|pluralize }} you have approved and {{ already_teacher_approved|length|pluralize:"is,are" }} pending admin approval
223+
</h3>
221224
<ul>
222225
{% for req in already_teacher_approved %}
223226
<li>{{ req }} -- requested by {{ req.user.full_name }}</li>
224227
{% endfor %}
225-
</ul>
228+
</ul>
226229
{% endif %}
227230
</div>
228231
{% endif %}

0 commit comments

Comments
 (0)