diff --git a/CHANGELOG.md b/CHANGELOG.md index e57b954..c6f1707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.24...HEAD) +## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.25...HEAD) ### Added ### Changed @@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### Security +## [0.1.25](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.24...v0.1.25) - 2024-04-04 + +### Changed + +- Upgraded TNA Frontend to `v0.1.51` + ## [0.1.24](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.23...v0.1.24) - 2024-03-28 ### Fixed diff --git a/README.md b/README.md index aa46438..078033c 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ We test each component against its published [component fixtures](https://github | TNA Frontend Jinja | Compatible TNA Frontend versions | | --------------------- | ------------------------------------------ | +| `0.1.25` | `v0.1.51` | | `0.1.23`, `0.1.24` | `v0.1.50` | | `0.1.21`, `0.1.22` | `v0.1.49` | | `0.1.20` | `v0.1.48` | diff --git a/package-lock.json b/package-lock.json index a56b561..90f4d7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@nationalarchives/frontend": "0.1.50", + "@nationalarchives/frontend": "0.1.51", "diff": "^5.1.0", "glob": "^10.2.7", "js-beautify": "^1.14.8", @@ -30,9 +30,9 @@ } }, "node_modules/@nationalarchives/frontend": { - "version": "0.1.50", - "resolved": "https://registry.npmjs.org/@nationalarchives/frontend/-/frontend-0.1.50.tgz", - "integrity": "sha512-ops5n4VJB2ykJYnuLs/DJHQ+zYNg2eTp35dnXBNbJN5xpKDwjG9a+ng27OdB8UJFI5hEoOhaqkDR1G3WIOUySQ==" + "version": "0.1.51", + "resolved": "https://registry.npmjs.org/@nationalarchives/frontend/-/frontend-0.1.51.tgz", + "integrity": "sha512-lMhOsXd/I6/IoJqMkyxNipMRnv6P+lLiGSC8srgKIxYnS9wJmwkvDy4vSappLE2I/c+/T92pf4+k5AcNlz194A==" }, "node_modules/@one-ini/wasm": { "version": "0.1.1", diff --git a/package.json b/package.json index 79edbee..c3c5297 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "test": "node test-fixtures.mjs" }, "dependencies": { - "@nationalarchives/frontend": "0.1.50", + "@nationalarchives/frontend": "0.1.51", "diff": "^5.1.0", "glob": "^10.2.7", "js-beautify": "^1.14.8", diff --git a/setup.py b/setup.py index ccd6a84..6da032f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="tna-frontend-jinja", - version="0.1.24", + version="0.1.25", author="Andrew Hosgood", author_email="andrew.hosgood@nationalarchives.gov.uk", description="TNA Frontend Jinja templates", diff --git a/tna_frontend_jinja/templates/components/card/macro.html b/tna_frontend_jinja/templates/components/card/macro.html index 04d9ec7..7fc6bc5 100644 --- a/tna_frontend_jinja/templates/components/card/macro.html +++ b/tna_frontend_jinja/templates/components/card/macro.html @@ -19,7 +19,7 @@ {{ params.supertitle }} {%- if params.href %} - {{ params.title }} + {{ params.title }} {%- else %} {{ params.title }} {%- endif %} @@ -28,7 +28,7 @@ {%- else %} {%- if params.href %} - {{ params.title }} + {{ params.title }} {%- else %} {{ params.title }} {%- endif %} @@ -36,7 +36,7 @@ {%- endif %} {%- if params.imageSrc %} {%- if params.href %} - + {%- else %}
{%- endif %} @@ -50,7 +50,7 @@ {{ params.imageAlt }} {%- if params.label %} -
+
{{ params.label }}
{%- endif %} diff --git a/tna_frontend_jinja/templates/components/checkboxes/macro.html b/tna_frontend_jinja/templates/components/checkboxes/macro.html index 622b7aa..326465e 100644 --- a/tna_frontend_jinja/templates/components/checkboxes/macro.html +++ b/tna_frontend_jinja/templates/components/checkboxes/macro.html @@ -26,7 +26,7 @@ {% endmacro %} {% macro tnaCheckboxesElement(params, extraAttributes) %} -
+
{%- for item in params['items'] %}
Error: {{ params.error.text }}

{%- endif %} -
+