Formatting, linting and handling year copyright properly.
This commit is contained in:
parent
cba2b9a27d
commit
b3933103a8
|
@ -84,7 +84,9 @@ class TestConfiguration {
|
|||
controllers.config.destroy
|
||||
)
|
||||
}
|
||||
} catch (err) {}
|
||||
} catch (err) {
|
||||
// don't need to handle error
|
||||
}
|
||||
}
|
||||
|
||||
async saveSettingsConfig() {
|
||||
|
|
|
@ -43,6 +43,8 @@ const TemplateBindings = {
|
|||
REQUEST: "request",
|
||||
DOCS_URL: "docsUrl",
|
||||
LOGIN_URL: "loginUrl",
|
||||
CURRENT_YEAR: "currentYear",
|
||||
CURRENT_DATE: "currentDate",
|
||||
}
|
||||
|
||||
const TemplateMetadata = {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
|
||||
<tr>
|
||||
<td class="content-cell" align="center">
|
||||
<p class="f-fallback sub align-center">© 2021 {{ company }}. All rights reserved.</p>
|
||||
<p class="f-fallback sub align-center">© {{ currentYear }} {{ company }}. All rights reserved.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -31,5 +31,7 @@ exports.getSettingsTemplateContext = async () => {
|
|||
[TemplateBindings.DOCS_URL]:
|
||||
settings.docsUrl || "https://docs.budibase.com/",
|
||||
[TemplateBindings.LOGIN_URL]: checkSlashesInUrl(`${URL}/login`),
|
||||
[TemplateBindings.CURRENT_DATE]: new Date().toISOString(),
|
||||
[TemplateBindings.CURRENT_YEAR]: new Date().getFullYear(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue