0
0
mirror of https://github.com/openwrt/luci.git synced 2025-04-09 23:14:49 +00:00
Files
Mustafa Can Elmacı ae8bbb814f treewide: HTML Cleanup
* HTML Cleanup: Meta tags.
* Converted charset to shorthand.
* Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.)

* HTML Cleanup: CSS tags.
* Removed `type` attribute with CSS files from link tags. (HTML5 spec recommends omitting it.)
* Removed `type` attribute from style tags. (Deprecated in HTML5 spec.)
https://html.spec.whatwg.org/#attr-link-type
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style

* HTML Cleanup: Convert from XHTML to HTML5
* Removed XML declaration.
* Removed XML namespace.
* Changed doctype to HTML5.

* HTML Cleanup: CDATA tags.
* CDATA sections should not be used within HTML they are considered as comments and not displayed.
https://developer.mozilla.org/en-US/docs/Web/API/CDATASection

* HTML Cleanup: Script tags.
* Removed `language` attribute from script tags. (No longer valid in HTML5)
* Removed `type` attribute with JavaScript MIME type from script tags. (HTML5 spec recommends omitting it.)
https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type
https://mimesniff.spec.whatwg.org/#javascript-mime-type

Signed-off-by: Mustafa Can Elmacı <mustafacan@elmaci.net>
2024-11-22 22:39:46 +01:00

68 lines
1.1 KiB
Plaintext

{#
Copyright 2022 Jo-Philipp Wich <jo@mein.io>
Licensed to the public under the Apache License 2.0.
-#}
<!--]]>--><!--'>--><!--">-->
<style>
body {
line-height: 1.5;
font-size: 14px;
font-family: sans-serif;
}
.error500 * {
margin: 0;
padding: 0;
color: inherit;
}
.error500 {
box-sizing: border-box;
position: fixed;
z-index: 999999;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: auto;
background: #ffe;
color: #f00 !important;
padding: 1em;
}
.error500 h1 {
margin-bottom: .5em;
}
.error500 .exception {
font-weight: normal;
white-space: normal;
margin: .25em;
padding: .5em;
border: 1px solid #f00;
background: rgba(204, 204, 204, .2);
}
.error500 .message {
font-weight: bold;
white-space: pre-line;
}
.error500 .context {
margin-top: 2em;
}
</style>
<div class="error500">
<h1>{{ title }}</h1>
<div class="message">{{ message }}</div>
{% if (exception): %}
<div class="exception">
<div class="message">{{ exception.message }}</div>
<pre class="context">{{ exception.stacktrace[0].context }}</pre>
</div>
{% endif %}
</div>