Skip to content

Commit

Permalink
FSR-1237: Fix text to Natural Resources Wales
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyurx11 committed Sep 18, 2024
1 parent c8d73e5 commit 89ec0f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/views/partials/latest-levels.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ <h2 class="defra-live__title">Latest level{% if model.latestLevels.length > 1 %}
<p class="defra-flood-meta defra-flood-meta--no-border govuk-!-margin-bottom-0"><strong>{{ warnings.formatted_time }}</strong></p>
<p>The {{ warnings.river_name }} level at {{ warnings.agency_name }} was {{ warnings.latest_level | toFixed(2) }} metres. Property flooding is possible when it goes above {{ warnings.threshold_value | toFixed(2) }} metres.
{% if model.latestLevels.length > 1 %}
<a href="/station/{{ warnings.rloi_id }}{% if warnings.direction == 'd' %}-downstage{% endif %}">Monitor the {{ warnings.river_name }} level at {{ warnings.agency_name }}{% if warnings.iswales %} (National Resources Wales){% endif %}</a>
<a href="/station/{{ warnings.rloi_id }}{% if warnings.direction == 'd' %}-downstage{% endif %}">Monitor the {{ warnings.river_name }} level at {{ warnings.agency_name }}{% if warnings.iswales %} (Natural Resources Wales){% endif %}</a>
{% endif %}
</p>
{% if model.latestLevels.length == 1 %}
<p>
<a href="/station/{{ warnings.rloi_id }}{% if warnings.direction == 'd' %}-downstage{% endif %}">Monitor the latest{% if model.latestLevels.length > 1 %} {{ warnings.river_name }}{% endif %} level at {{ warnings.agency_name }}{% if warnings.iswales %} (National Resources Wales){% endif %}</a>
<a href="/station/{{ warnings.rloi_id }}{% if warnings.direction == 'd' %}-downstage{% endif %}">Monitor the latest{% if model.latestLevels.length > 1 %} {{ warnings.river_name }}{% endif %} level at {{ warnings.agency_name }}{% if warnings.iswales %} (Natural Resources Wales){% endif %}</a>
</p>
{% endif %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion test/routes/target-area.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,6 @@ lab.experiment('Target-area tests', () => {

Code.expect(response.payload).to.contain('<h2 class="defra-live__title">Latest level</h2>')
Code.expect(response.payload).to.contain('<p>The River Welsh level at Welsh Station was 0.35 metres. Property flooding is possible when it goes above 1.40 metres.\n \n </p>')
Code.expect(response.payload).to.contain('<a href="/station/7201">Monitor the latest level at Welsh Station (National Resources Wales)</a>')
Code.expect(response.payload).to.contain('<a href="/station/7201">Monitor the latest level at Welsh Station (Natural Resources Wales)</a>')
})
})

0 comments on commit 89ec0f0

Please sign in to comment.