Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OEL-2253: Adapt content_banner template for badges with outline param. #309

Merged
merged 5 commits into from
Mar 7, 2023

Conversation

tibi2303
Copy link
Contributor

@tibi2303 tibi2303 commented Mar 6, 2023

Jira issue(s):

@tibi2303 tibi2303 linked an issue Mar 6, 2023 that may be closed by this pull request
@@ -23,7 +23,7 @@
{% set _badges = [] %}
{% for _badge in badges %}
{% set _badge = _badge|merge({
'outline': true,
'outline': _badge.outline|default(true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work, it always shows outlined entries:
image
The correct check is 'outline': _badge.outline ?? true, to preserve false values.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thanks. changed them

@brummbar brummbar merged commit 0f1afe4 into 1.x Mar 7, 2023
@brummbar brummbar deleted the OEL-2253 branch March 7, 2023 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it possible to set the outline badge parameter in content banner
2 participants