Skip to content

Commit

Permalink
Add condition for 121 dot release date in the template + remove old 1…
Browse files Browse the repository at this point in the history
…06 condition
  • Loading branch information
pascalchevrel committed Dec 19, 2023
1 parent 76eb076 commit 4010022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/templates/past_release.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@
{% endif %}

{% if release ~ '.0' not in no_planned_dot_releases %}
{% if "now"|date('Y-m-d') < release_date|date_modify("+" ~ ( release == 106 ? '1' : '2' ) ~ " weeks")|date('Y-m-d') %}
{% if "now"|date('Y-m-d') < release_date|date_modify("+2 weeks")|date('Y-m-d') %}
<tr>
<th>Planned {{ release }}.0.x</th>
<td title="">{{ release_date|date_modify("+2 weeks")|format_date(pattern='MMMM d', locale='en') }}</td>
<td title="">{{ release_date|date_modify("+" ~ ( release == 121 ? '3' : '2' ) ~ " weeks")|format_date(pattern='MMMM d', locale='en') }}</td>
</tr>
{% endif %}
{% endif %}
Expand Down

0 comments on commit 4010022

Please sign in to comment.