mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
Fix #5922
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
"not-logged-in": "You don't seem to be logged in.",
|
||||
"account-locked": "Your account has been locked temporarily",
|
||||
"search-requires-login": "Searching requires an account - please login or register.",
|
||||
"goback": "Return to the previous page",
|
||||
|
||||
"invalid-cid": "Invalid Category ID",
|
||||
"invalid-tid": "Invalid Topic ID",
|
||||
|
||||
@@ -26,7 +26,7 @@ helpers.noScriptErrors = function (req, res, error, httpStatus) {
|
||||
path: req.path,
|
||||
loggedIn: true,
|
||||
error: error,
|
||||
returnLink: true,
|
||||
returnLink: req.get('Referrer'),
|
||||
title: '[[global:' + httpStatusString + '.title]]',
|
||||
});
|
||||
});
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
<!-- ENDIF error -->
|
||||
|
||||
<!-- IF returnLink -->
|
||||
<p>[[error:goback]]</p>
|
||||
<a href="{returnLink}">[[error:goback]]</a>
|
||||
<!-- ENDIF returnLink -->
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<!-- ENDIF error -->
|
||||
|
||||
<!-- IF returnLink -->
|
||||
<p>[[error:goback]]</p>
|
||||
<a href="{returnLink}">[[error:goback]]</a>
|
||||
<!-- ENDIF returnLink -->
|
||||
|
||||
<!-- IF !loggedIn -->
|
||||
|
||||
@@ -4,7 +4,7 @@ define('/assets/templates/500.jst', function () {
|
||||
return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' +
|
||||
helpers.__escape(get(context && context['path'])) + '</p>\n\t' +
|
||||
(get(context && context['error']) ? '<p>' + helpers.__escape(get(context && context['error'])) + '</p>' : '') + '\n\n\t' +
|
||||
(get(context && context['returnLink']) ? '\n\t<p>[[error:goback]]</p>\n\t' : '') + '\n</div>\n';
|
||||
(get(context && context['returnLink']) ? '\n\t<a href="' + (get(context && context['returnLink'])) + '">[[error:goback]]</a>\n\t' : '') + '\n</div>\n';
|
||||
}
|
||||
|
||||
return compiled;
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<!-- IF error --><p>{error}</p><!-- ENDIF error -->
|
||||
|
||||
<!-- IF returnLink -->
|
||||
<p>[[error:goback]]</p>
|
||||
<a href="{returnLink}">[[error:goback]]</a>
|
||||
<!-- ENDIF returnLink -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user