Skip to content

Commit

Permalink
Add validation notice across the site
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesdring committed Jan 18, 2024
1 parent 054b108 commit 50ebdc6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
8 changes: 8 additions & 0 deletions docs/_components/notice/pending_validation.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<aside class='validation-notice unvalidated'>
<img class="icon" src="/assets/images/icons/warning.svg" inline/>
<p>
The LEEDS 2023 team is in the process of validating the figures presented on this page for evaluation purposes.
While every attempt has been made to ensure the live figures are accurate and up-to-date, we reserve the right
to amend any values presented here.
</p>
</aside>
8 changes: 8 additions & 0 deletions docs/_components/notice/validated.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<aside class='validation-notice validated'>
<img class="icon" src="/assets/images/icons/info.svg" inline/>
<p>
The LEEDS 2023 team has validated these figures in preparation for the evaluation
and believe these are a true reflection of the metrics presented.
We reserve the right to amend any values presented here without notice.
</p>
</aside>
19 changes: 3 additions & 16 deletions docs/_includes/layouts/metric.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,11 @@ up:
---

{% if validated %}
<aside class='validation-notice validated'>
<img class="icon" src="/assets/images/icons/info.svg" inline/>
<p>
The LEEDS 2023 team has validated these figures in preparation for the evaluation
and believe these are a true reflection of the metrics presented.
We reserve the right to amend any values presented here without notice.
</p>
</aside>
{{ comp.notice.validated() | safe }}
{% else %}
<aside class='validation-notice unvalidated'>
<img class="icon" src="/assets/images/icons/warning.svg" inline/>
<p>
The LEEDS 2023 team is in the process of validating the figures presented on this page for evaluation purposes.
While every attempt has been made to ensure the live figures are accurate and up-to-date, we reserve the right
to amend any values presented here.
</p>
</aside>
{{ comp.notice.pending_validation() | safe }}
{% endif %}

{% if introduction %}{{ introduction | md | safe }}{% endif %}

{{
Expand Down
4 changes: 4 additions & 0 deletions docs/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ layout: layouts/default.njk
<p>
This microsite displays data about the <a href="https://leeds2023.co.uk">Leeds 2023 Year of Culture</a>.
</p>

{{ comp.notice.pending_validation() | safe }}

{% endcomp %}

{% comp "layout.block" %}

<p>
LEEDS 2023 is working across all 33 wards of the city and engaging with a wide range of participants representative of Leeds. The programme strives to be as
representative and inclusive as possible.
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/metrics/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ up:
}
} -%}

{{ comp.notice.pending_validation() | safe }}

{% comp 'grid.autogrid', { min_width: '20rem' } %}
{% for metric in search.pages('metrics main', 'order=asc title=asc') | data %}
{% comp "grid.block.impact", {
Expand Down

0 comments on commit 50ebdc6

Please sign in to comment.