Skip to content

Commit

Permalink
Merge pull request #62 from Crown-Commercial-Service/feature/DMP-632-…
Browse files Browse the repository at this point in the history
…add-system-messages-component

Replace new-framework-banner with more generic system-message-banner
  • Loading branch information
tim-s-ccs authored May 16, 2024
2 parents eaf2233 + 3152ed9 commit 9712517
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 21 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

Records breaking changes from major version bumps.

## 2.5.0

🆕 New features:

Add macros for the following components:

| Component name | Macro name |
|-----------------------|-----------------------------------------|
| System message banner | `digitalmarketplaceSystemMessageBanner` |

Remove macros for the following components:

| Component name | Macro name |
|-----------------------|-----------------------------------------|
| New framework banner | `digitalmarketplaceNewFrameworkBanner` |


## 2.4.0

Remove support for Python 3.9
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The following table shows the version of Digital Marketplace Frontend Jinja that

| Digital Marketplace Frontend Jinja Version | Target CCS Digital Marketplace GOV.UK Frontend Version |
| ----------------------------- | ------------------------------ |
| [2.5.0](https://github.com/tim-s-ccs/ccs-digitalmarketplace-frontend-jinja/releases/tag/2.5.0) | [6.3.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/6.3.0) |
| [2.2.0](https://github.com/tim-s-ccs/ccs-digitalmarketplace-frontend-jinja/releases/tag/2.2.0) | [6.2.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/6.2.0) |
| [2.1.1](https://github.com/tim-s-ccs/ccs-digitalmarketplace-frontend-jinja/releases/tag/2.1.1) | [6.1.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/6.1.1) |
| [2.1.0](https://github.com/tim-s-ccs/ccs-digitalmarketplace-frontend-jinja/releases/tag/2.1.0) | [6.1.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/6.1.0) |
Expand Down
2 changes: 1 addition & 1 deletion digitalmarketplace_frontend_jinja/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.4.0'
__version__ = '2.5.0'

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% macro digitalmarketplaceSystemMessageBanner(params) %}
{%- from 'govuk_frontend_jinja/components/notification-banner/macro.html' import govukNotificationBanner -%}

{%- if params.show -%}
{{ govukNotificationBanner(params.data) }}
{%- endif -%}
{% endmacro %}
8 changes: 4 additions & 4 deletions 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
Expand Up @@ -5,6 +5,6 @@
"author": "CCS",
"license": "MIT",
"devDependencies": {
"ccs-digitalmarketplace-govuk-frontend": "^6.2.0"
"ccs-digitalmarketplace-govuk-frontend": "^6.3.0"
}
}

0 comments on commit 9712517

Please sign in to comment.