-
Notifications
You must be signed in to change notification settings - Fork 447
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
Add HTML support on system-wide alert (Fixes #3019) #3028
Conversation
Just in case this is why, I tested using yarn start:dev not by doing the yarn build. |
I also tested this PR in the dev environment with But I deployed this patch in a stable server running DSpace 7.6/7.6.1 months ago without issues: https://biblioteca.sistedes.es |
Just re-tested, it works perfectly. Sorry I had something else generating the problem. |
No worries! Great! ☺🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @abelgomez ! Tested this today and it works well. It's a very simple change (basically a "one-liner" style bug fix), so I'm going to also port this back to 7.x
Successfully created backport PR for |
References
Description
Adds HTML support to the system-wide alert banner.
Instructions for Reviewers
The commit only includes two simple changes, as explained in #3019 (comment).
In a second commit (I did it in a separate commit to ease the PR review), I also reformatted the code of the HTML templates, since the indenting was a bit mangled.
To test, log in as an admin, and set a system-wide alert message with HTML code in it.
Some examples of the result:
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.