Skip to content

Commit

Permalink
Merge pull request #126 from SADiLaR/fix/end-date-a11y
Browse files Browse the repository at this point in the history
fix(a11y): put 'ongoing' after 'end date'
  • Loading branch information
Restioson authored Oct 18, 2024
2 parents 87b7dcd + afff001 commit 36b7004
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/templates/app/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,24 @@ <h1 id="main-heading">{{ project.name }}</h1>
<div class="row">
<p class="col-lg-6">
{% icon "date" %}
{% trans "Start Date:" %} {{ project.start_date|date:"Y-m-d" }}
{% trans "Start Date:" %}

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

<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 36b7004

Please sign in to comment.