You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
668 B
Smarty
14 lines
668 B
Smarty
<script>
|
|
window.addEventListener('load', function () {
|
|
define(config.relative_path + '/assets/templates/500.js', function () {
|
|
function compiled(helpers, context, get, iter, helper) {
|
|
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';
|
|
}
|
|
|
|
return compiled;
|
|
});
|
|
});
|
|
</script> |