Gerrit.install(plugin => {
const endpoint = 'banner';
plugin.hook(endpoint).onAttached(element => {
const el = element.appendChild(document.createElement('div'));
el.textContent = "This gerrit instance will be migrated from LDAP to MS Azure AD on 15th of Sep 2023, between 17:00 to 19:00 CET. Please reach out to us on our Teams channel if you have any questions."
el.style = 'background: pink; line-height: 4em; text-align: center;';
});
});
This is getting displayed at the top of the screen in a single line.
I would like to break this text on 2 lines instead of one.
I tried adding \n and <br\> to the above text but it doesn't help.
Also, I would like to insert a link to our teams channel.
I have tried to look for documentation or any examples online but in vain.
The usual html code does not seem to work.
Can someone please help me with my above queries?
Best Regards,
Kiran