Synchronize the template for error messages with the frontend version
authorMarcel Werk <burntime@woltlab.com>
Thu, 16 Nov 2023 15:15:07 +0000 (16:15 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 16 Nov 2023 15:15:07 +0000 (16:15 +0100)
wcfsetup/install/files/acp/templates/userException.tpl

index ddda8bed7c312482692c2e2da630b8657a89dc64..1681f0071f92c11cfee21d34b8f50b9e59468a4b 100644 (file)
@@ -1,12 +1,23 @@
-{include file='header' templateName='userException' templateNameApplication='wcf'}
+{include file='header' pageTitle='wcf.global.error.title' templateName='userException' templateNameApplication='wcf'}
 
-<p id="errorMessage" class="error">
-       {@$message}
-</p>
+<header class="contentHeader">
+       <div class="contentHeaderTitle">
+               <h1 class="contentTitle">{lang}wcf.global.error.title{/lang}</h1>
+       </div>
+</header>
+
+<div class="section">
+       <div class="box64 userException">
+               {icon size=64 name='circle-exclamation'}
+               <p id="errorMessage" class="fullPageErrorMessage userExceptionMessage" data-exception-class-name="{$exceptionClassName}">
+                       {@$message}
+               </p>
+       </div>
+</div>
 
 <script data-relocate="true">
        if (document.referrer) {
-               $('#errorMessage').append('<br><a href="' + document.referrer + '">{lang}wcf.page.error.backward{/lang}</a>');
+               $('#errorMessage').append('<br><br><a href="' + document.referrer + '">{lang}wcf.page.error.backward{/lang}</a>');
        }
 </script>
 
        Stacktrace:
        {$stacktrace}
        -->
+       <script>
+               console.debug('{$name|encodeJS} thrown in {$file|encodeJS} ({@$line})');
+               console.debug('Stacktrace:\n{@$stacktrace|encodeJS}');
+       </script>
 {/if}
+
 {include file='footer'}