Skip to content

Commit

Permalink
Hot fix/fix fgs outlook tab (#279)
Browse files Browse the repository at this point in the history
* Hot Fix: Remove capitalize from template to fix FGS outlook tab error.

* Hot-Fix: Update version number to 5.5.1

Co-authored-by: John Shields <[email protected]>
  • Loading branch information
JFSCH and John Shields authored Feb 17, 2022
1 parent 8975e71 commit 0ae3d64
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flood-app",
"version": "5.5.0",
"version": "5.5.1",
"description": "Flood risk app",
"main": "index.js",
"repository": "github:defra/flood-app",
Expand Down
2 changes: 1 addition & 1 deletion server/src/templates/info-outlook.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2 class="govuk-heading-s">{{ model.name }}</h2>
{% case "3-i3-l4" %}
<span>We expect {{ messageText.sources[0] }} to cause properties and roads to flood. If this happens, your life might be in danger.</span>
{% case "3-i4-l2" %}
<span>{{ messageText.sources[0] | capitalize }} could cause severe flooding and travel disruption. If this happens, your life might be in danger. Be prepared to evacuate.</span>
<span>{{ messageText.sources[0] }} could cause severe flooding and travel disruption. If this happens, your life might be in danger. Be prepared to evacuate.</span>
{% case "3-i4-l3" %}
<span>It’s likely that {{ messageText.sources[0] }} will cause severe flooding and travel disruption. If this happens, your life might be in danger. Be prepared to evacuate.</span>
{% case "4-i4-l4" %}
Expand Down
2 changes: 1 addition & 1 deletion server/views/partials/outlook-region-messages.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% case "3-i3-l4" %}
<span>We expect {{ sources }} to cause properties and roads to flood. If this happens, your life might be in danger.</span>
{% case "3-i4-l2" %}
<span>{{ sources | capitalize }} could cause severe flooding and travel disruption. If this happens, your life might be in danger. Be prepared to evacuate.</span>
<span>{{ sources }} could cause severe flooding and travel disruption. If this happens, your life might be in danger. Be prepared to evacuate.</span>
{% case "3-i4-l3" %}
<span>It’s likely that {{ sources }} will cause severe flooding and travel disruption. If this happens, your life might be in danger. Be prepared to evacuate.</span>
{% case "4-i4-l4" %}
Expand Down

0 comments on commit 0ae3d64

Please sign in to comment.