Skip to content

Commit

Permalink
Remove time based logic from travel advice.
Browse files Browse the repository at this point in the history
#2106 introduced some logic so that we wouldn't have to deploy at midnight. This just cleans that up now the time has passed.
  • Loading branch information
JonathanHallam committed May 17, 2021
1 parent 85e4185 commit cf1ec77
Showing 1 changed file with 12 additions and 31 deletions.
43 changes: 12 additions & 31 deletions app/views/content_items/travel_advice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,18 @@
} %>
</div>
<div class="travel-advice-notice__content">
<% if Time.zone.now < Date.parse("2021-05-17").beginning_of_day %>
<p class="govuk-body">
<strong>
It is illegal to travel abroad from the UK for holidays.
</strong>
Follow current COVID-19 rules where you live: <a href="/guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do">England</a>, <a href="https://www.gov.scot/coronavirus-covid-19/">Scotland</a>, <a href="https://gov.wales/covid-19-alert-levels">Wales</a> and <a href="https://www.nidirect.gov.uk/articles/coronavirus-covid-19-regulations-guidance-what-restrictions-mean-you">Northern Ireland</a>.
</p>
<p class="govuk-body">
In England, you must have a <a href="/guidance/coronavirus-covid-19-declaration-form-for-international-travel">permitted reason to travel abroad</a> and complete the declaration form.
</p>
<p class="govuk-body">
Some countries have closed borders, and any country may further restrict travel or bring in new social distancing rules with little warning.
<a href="/guidance/travel-advice-novel-coronavirus">Check our advice</a> for each country you will visit or transit through.
</p>
<p class="govuk-body">
When you return, follow the rules to <a href="/uk-border-control">enter the UK from abroad</a> (except from Ireland).
</p>
<% else %>
<p class="govuk-body">
Follow current COVID-19 rules where you live: <a href="/guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do">England</a>, <a href="https://www.gov.scot/coronavirus-covid-19/">Scotland</a>, <a href="https://gov.wales/covid-19-alert-levels">Wales</a> and <a href="https://www.nidirect.gov.uk/articles/coronavirus-covid-19-regulations-guidance-what-restrictions-mean-you">Northern Ireland</a>.
</p>
<p class="govuk-body">
To prevent new COVID variants from entering the UK, you should not travel to <a href="/guidance/red-amber-and-green-list-rules-for-entering-england">amber or red list countries</a>.
</p>
<p class="govuk-body">
To understand the risks in a country follow <a href="/guidance/travel-advice-novel-coronavirus">FCDO Travel Advice</a>.
</p>
<p class="govuk-body">
When you return, follow the rules to <a href="/uk-border-control">enter the UK from abroad</a> (except from Ireland).
</p>
<% end %>
<p class="govuk-body">
Follow current COVID-19 rules where you live: <a href="/guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do">England</a>, <a href="https://www.gov.scot/coronavirus-covid-19/">Scotland</a>, <a href="https://gov.wales/covid-19-alert-levels">Wales</a> and <a href="https://www.nidirect.gov.uk/articles/coronavirus-covid-19-regulations-guidance-what-restrictions-mean-you">Northern Ireland</a>.
</p>
<p class="govuk-body">
To prevent new COVID variants from entering the UK, you should not travel to <a href="/guidance/red-amber-and-green-list-rules-for-entering-england">amber or red list countries</a>.
</p>
<p class="govuk-body">
To understand the risks in a country follow <a href="/guidance/travel-advice-novel-coronavirus">FCDO Travel Advice</a>.
</p>
<p class="govuk-body">
When you return, follow the rules to <a href="/uk-border-control">enter the UK from abroad</a> (except from Ireland).
</p>
</div>
</div>

Expand Down

0 comments on commit cf1ec77

Please sign in to comment.