Skip to content

Commit

Permalink
fix(a11y): put 'ongoing' after 'end date'
Browse files Browse the repository at this point in the history
Before this change, the screenreader would simply read "End Date:" and trail off. Now, it will read "End Date: Ongoing". For sighted users, the text is slightly greyed-out to indicate that the end date is not _really_ there (as the project is ongoing).
  • Loading branch information
Restioson committed Oct 3, 2024
1 parent 7865e43 commit 5a60670
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/templates/app/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ <h1 id="main-heading">{{ project.name }}</h1>

<p class="col-lg-6">
{% icon "date" %}
{% trans "End Date:" %} {{ project.end_date|date:"Y-m-d" }}
{% trans "End Date:" %}

{% if project.end_date %}
{{ project.end_date|date:"Y-m-d"|default:"" }}
{% else %}
<span class="text-muted">{% trans "ongoing" %}</span>
{% endif %}
</p>
</div>

Expand Down

0 comments on commit 5a60670

Please sign in to comment.