From 4010022b4d0b4fd12dc97fed2ed182fb140eabca Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Tue, 19 Dec 2023 16:15:34 +0100 Subject: [PATCH] Add condition for 121 dot release date in the template + remove old 106 condition --- app/views/templates/past_release.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/templates/past_release.html.twig b/app/views/templates/past_release.html.twig index d015501..a720375 100644 --- a/app/views/templates/past_release.html.twig +++ b/app/views/templates/past_release.html.twig @@ -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') %} Planned {{ release }}.0.x - {{ release_date|date_modify("+2 weeks")|format_date(pattern='MMMM d', locale='en') }} + {{ release_date|date_modify("+" ~ ( release == 121 ? '3' : '2' ) ~ " weeks")|format_date(pattern='MMMM d', locale='en') }} {% endif %} {% endif %}