diff --git a/public/language/en-GB/global.json b/public/language/en-GB/global.json index c4b031520b..75f9e2251b 100644 --- a/public/language/en-GB/global.json +++ b/public/language/en-GB/global.json @@ -6,7 +6,7 @@ "403.message": "You seem to have stumbled upon a page that you do not have access to.", "403.login": "Perhaps you should try logging in?", "404.title": "Not Found", - "404.message": "You seem to have stumbled upon a page that does not exist. Return to the home page.", + "404.message": "You seem to have stumbled upon a page that does not exist.
Return to the home page.
", "500.title": "Internal Error.", "500.message": "Oops! Looks like something went wrong!", "400.title": "Bad Request.", diff --git a/src/controllers/404.js b/src/controllers/404.js index 3843d6bace..8b5fda6ebf 100644 --- a/src/controllers/404.js +++ b/src/controllers/404.js @@ -54,11 +54,16 @@ exports.send404 = async function (req, res) { bodyClass: helpers.buildBodyClass(req, res), }); } - + const icons = [ + 'fa-hippo', 'fa-cat', 'fa-otter', + 'fa-dog', 'fa-cow', 'fa-fish', + 'fa-dragon', 'fa-horse', 'fa-dove', + ]; await middleware.buildHeaderAsync(req, res); await res.render('404', { path: validator.escape(path), title: '[[global:404.title]]', bodyClass: helpers.buildBodyClass(req, res), + icon: icons[Math.floor(Math.random() * icons.length)], }); }; diff --git a/src/views/404.tpl b/src/views/404.tpl index 5d1fb9d43c..e0a3d68ed2 100644 --- a/src/views/404.tpl +++ b/src/views/404.tpl @@ -1,4 +1,12 @@ -
- {path} [[global:404.title]] -

{{{ if error }}}{error}{{{ else }}}[[global:404.message, {config.relative_path}]]{{{ end }}}

-
\ No newline at end of file +
+

[[global:404.title]]

+ +
+
+
+ +
+ {{{ if error }}}{error}{{{ else }}}[[global:404.message, {config.relative_path}]]{{{ end }}} +
+
+
diff --git a/src/views/outgoing.tpl b/src/views/outgoing.tpl index d806b935d3..60cbb92074 100644 --- a/src/views/outgoing.tpl +++ b/src/views/outgoing.tpl @@ -1,12 +1,7 @@ -
- -
-

- [[notifications:outgoing_link_message, {title}]] -

- -
-
\ No newline at end of file +
+

+ [[notifications:outgoing_link_message, {title}]] +

+ [[notifications:continue_to, {outgoing}]] + [[notifications:return_to, {title}]] +