fix html formatting

This commit is contained in:
Martin Raifer
2021-11-26 18:40:43 +01:00
parent ca07e33a3e
commit ca0b131542
2 changed files with 6 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ export function uiSplash(context) {
.append('div')
.attr('class','modal-section')
.append('h3')
.html(t.html('splash.welcome'));
.call(t.html('splash.welcome'));
let modalSection = introModal
.append('div')
@@ -52,16 +52,16 @@ export function uiSplash(context) {
.append('p')
.html(t.html('splash.text', {
version: context.version,
website: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/develop/CHANGELOG.md#whats-new">changelog</a>',
github: '<a target="_blank" href="https://github.com/openstreetmap/iD/issues">github.com</a>'
website: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/develop/CHANGELOG.md#whats-new">changelog</a>' },
github: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/issues">github.com</a>' }
}));
modalSection
.append('p')
.html(t.html('splash.privacy', {
updateMessage: updateMessage,
privacyLink: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/release/PRIVACY.md">' +
t('splash.privacy_policy') + '</a>'
privacyLink: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/release/PRIVACY.md">' +
t('splash.privacy_policy') + '</a>' }
}));
let buttonWrap = introModal

View File

@@ -151,7 +151,7 @@ export function uiSuccess(context) {
summaryDetail
.append('div')
.html(t.html('success.changeset_id', {
changeset_id: `<a href="${changesetURL}" target="_blank">${_changeset.id}</a>`
changeset_id: { html: `<a href="${changesetURL}" target="_blank">${_changeset.id}</a>` }
}));