Use Benchpress (#5901)
* Use Benchpress * Use Benchpress.compileParse * Error for template load failure * Use benchpressjs package * Compile templates on demand * Fix user settings page * Fix admin search to exclude `.jst` files * Fix 500-embed So ajaxify can still show an error if the server goes downv1.18.x
parent
864321f727
commit
abffc29128
@ -1,8 +1,12 @@
|
|||||||
<script type="text/tpl" data-template="500">
|
<script>
|
||||||
<div class="alert alert-danger">
|
define('/assets/templates/500.jst', function () {
|
||||||
	<strong>[[global:500.title]]</strong>
|
function compiled(helpers, context, get, iter, helper) {
|
||||||
	<p>[[global:500.message]]</p>
|
return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' +
|
||||||
	<p>{path}</p>
|
helpers.__escape(get(context && context['path'])) + '</p>\n\t' +
|
||||||
	<!-- IF error --><p>{error}</p><!-- ENDIF error -->
|
(get(context && context['error']) ? '<p>' + helpers.__escape(get(context && context['error'])) + '</p>' : '') + '\n\n\t' +
|
||||||
</div>
|
(get(context && context['returnLink']) ? '\n\t<p>[[error:goback]]</p>\n\t' : '') + '\n</div>\n';
|
||||||
|
}
|
||||||
|
|
||||||
|
return compiled;
|
||||||
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue