From: Art Cancro Date: Wed, 20 Dec 2023 16:51:12 +0000 (-0500) Subject: views.js: convert strings to template literals X-Git-Tag: v997~63 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=86c10444bde0ff12c5dc5beb5e92953147062a5d views.js: convert strings to template literals --- diff --git a/webcit-ng/static/js/views.js b/webcit-ng/static/js/views.js index be2d48bdb..b266dbe99 100644 --- a/webcit-ng/static/js/views.js +++ b/webcit-ng/static/js/views.js @@ -60,48 +60,48 @@ function render_room_view() { // The "contacts" module displays rooms with the VIEW_ADDRESSBOOK view as a contacts manager. case views.VIEW_ADDRESSBOOK: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is an address book but there is no renderer.
"; + `
'${current_room}' is an address book but there is no renderer.
`; break; case views.VIEW_CALENDAR: case views.VIEW_CALBRIEF: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is a calendar but there is no renderer.
"; + `
'${current_room}' is a calendar but there is no renderer.
`; break; case views.VIEW_TASKS: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is a task list but there is no renderer.
"; + `
'${current_room}' is a task list but there is no renderer.
`; break; case views.VIEW_NOTES: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is a notes list but there is no renderer.
"; + `
'${current_room}' is a notes list but there is no renderer.
`; break; case views.VIEW_WIKI: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is a wiki but there is no renderer.
"; + `
'${current_room}' is a wiki but there is no renderer.
`; break; case views.VIEW_JOURNAL: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is a journal but there is no renderer.
"; + `
'${current_room}' is a journal but there is no renderer.
`; break; case views.VIEW_BLOG: document.getElementById("ctdl-main").innerHTML = - "
'" + current_room + "' is a blog but there is no renderer.
"; + `
'${current_room}' is a blog but there is no renderer.
`; break; case views.VIEW_QUEUE: document.getElementById("ctdl-main").innerHTML = - "
We ought to be displaying the email queue here.
"; + `
'${current_room}' is the mail queue but there is no renderer.
`; break; default: document.getElementById("ctdl-main").innerHTML = - "
The view for " + current_room + " is " + current_view + " but there is no renderer.
"; + `
The view for '${current_room}' is ${current_view} but there is no renderer.
`; break; }