Skip to content

Commit

Permalink
Add manual overrides notice
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesdring committed Jan 23, 2024
1 parent 348887a commit 2e67f5b
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 7 deletions.
11 changes: 11 additions & 0 deletions docs/_components/notice/manual_overrides.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<aside class="notice manual-override">
<img class="icon" src="/assets/images/icons/adjust-setting.svg" inline/>
<p>
This page contains data which differs from the data sources referenced on the page.
This is might be as a result of
incomplete or outdated source data,
changes to data processing, or
other manual adjustment to account for data not already captured in LEEDS 2023 operational systems that feed this site.
Where practicable, the source data or processing will be amended to more accurately reflect the manually overriden figures.
</p>
</aside>
2 changes: 1 addition & 1 deletion docs/_components/notice/pending_validation.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<aside class='validation-notice unvalidated'>
<aside class='notice 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.
Expand Down
2 changes: 1 addition & 1 deletion docs/_components/notice/validated.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<aside class='validation-notice validated'>
<aside class='notice 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
Expand Down
16 changes: 12 additions & 4 deletions docs/_includes/css/validation.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.validation-notice {
background: var(--l23-yellow);
border: 0.5em solid black;
.notice {
border: 0.2em solid black;
padding: 1em;
display: flex;
gap: 1em;
Expand All @@ -12,11 +11,20 @@
width: 2em;
flex-shrink: 0;
}
}

.validation-notice {
background: var(--l23-yellow);
/* border-width: 0.5em; */
&.validated {
background-color: var(--l23-cyan);
}
}

.manual-override {
background: var(--l23-magenta);
}

.validation-message {
background-color: var(--l23-yellow);
display: flex;
Expand All @@ -26,4 +34,4 @@
& :is(svg, img) {
height: 1em;
}
}
}
2 changes: 2 additions & 0 deletions docs/_includes/layouts/metric.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ up:

{{ content | safe }}

{% if data_overrides %}{{ comp.notice.manual_overrides() | safe }}{% endif %}

{% if limitations %}
<h2>Known Limitations and Issues</h2>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/partials/header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p class='header-title'>{{ header_title or metas.site }}</p>
</a>
{{ comp.nav({ url: url }) | safe }}
{% if work_in_progress %}{{ comp.work_in_progress() | safe }}{% endif %}
{# {% if work_in_progress %}{{ comp.work_in_progress() | safe }}{% endif %} #}
</header>
{% endcomp %}
</div>
Expand Down
2 changes: 2 additions & 0 deletions docs/assets/images/icons/adjust-setting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2e67f5b

Please sign in to comment.