-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Configuration to display an application banner #8416
Conversation
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.
LGTM. One limitation is that the message is not multilingual. One option would be to use the service description of the catalogue like we do here https://github.com/geonetwork/core-geonetwork/blob/main/web-ui/src/main/resources/catalog/views/default/templates/home.html#L9 but not sure it worth it?
I was thinking to configure a translation-key in the database and use it. I'll check to update the pull request with this. |
yep maybe a translation key can be good enough and will be display in main catalogue and portal more easily. |
@fxprunayre updated to use a translation key |
@josegar74 I had a go at the styling and looked at how GitHub did it. I used the same yellow background for a better contrast of background and foreground. For now the text is always displayed as This is the .application-banner {
background-color: #fff8c5;
border: 1px solid #d4a72c66;
margin: 15px;
padding: 15px;
border-radius: 4px;
color: #000;
} |
@MichelGabriel, thanks. I've updated the styling. |
The backport to
stderr
stdout
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.2.x 4.2.x
# Navigate to the new working tree
cd .worktrees/backport-4.2.x
# Create a new branch
git switch --create backport-8416-to-4.2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 832a023532758c933374ceb590b0b5e2e93707fa,a4d680ed0e6615ea54d96b489a9dea22258536ff,59896f2dbd17a72acae9371989b1e7e1197b0fd2,33ec70b589eee50efb74732ad1324a50c096bf37
# Push it to GitHub
git push --set-upstream origin backport-8416-to-4.2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.2.x Then, create a pull request where the |
* Add configuration to display an application banner * Add configuration to display an application banner - use translations for the message * Application banner - update style
…on script. Follow up: geonetwork#8416
In certain cases can be relevant to display a banner in the application to inform users, for example of a maintenance task.
This change request adds a new setting to enable an application banner and configure the text to display.
The banner is displayed in the public pages.
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentation