Skip to content

Commit

Permalink
fix: Do not show stopped timestamp if is greater than destroy timesta…
Browse files Browse the repository at this point in the history
…mp (#2218)
  • Loading branch information
aleixhub authored Oct 23, 2024
1 parent 89bd6c1 commit cf60782
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion notifier/operator/templates/service-ready.mjml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<p>Always refer to the instructions to understand how to properly access and navigate your environment.</p>

<p>NOTICE:<br>
{% if stop_timestamp < retirement_timestamp %}
Your environment will be stopped in {{ stop_timedelta_humanized }} at {{ stop_timestamp }}.<br>
{% endif %}
Your environment will expire and be deleted in {{ retirement_timedelta_humanized }} at {{ retirement_timestamp }}.</p>

<p>In order to conserve resources, we cannot archive or restore any data in this environment.
Expand All @@ -33,4 +35,4 @@
</mj-text>
</mj-column>

{% endblock content %}
{% endblock content %}
4 changes: 3 additions & 1 deletion notifier/operator/templates/start-complete.mjml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<p>
<b>NOTICE:</b><br>
<ul>
{% if stop_timestamp < retirement_timestamp %}
<li>Your environment will be stopped in {{ stop_timedelta_humanized }} at {{ stop_timestamp }}.</li>
{% endif %}
<li>Your environment will expire and be deleted in {{ retirement_timedelta_humanized }} at {{ retirement_timestamp }}.</li>
</ul>
</p>
Expand All @@ -22,4 +24,4 @@
</mj-text>
</mj-column>

{% endblock content %}
{% endblock content %}

0 comments on commit cf60782

Please sign in to comment.