mirror of https://github.com/rwf2/Rocket.git
Improve accessibility of default error HTML.
This commit is contained in:
parent
20a76fee25
commit
dfc9e9aab0
|
@ -125,16 +125,18 @@ macro_rules! error_page_template {
|
|||
($code:expr, $name:expr, $description:expr) => (
|
||||
concat!(r#"
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>"#, $code, " ", $name, r#"</title>
|
||||
</head>
|
||||
<body align="center">
|
||||
<div align="center">
|
||||
<div role="main" align="center">
|
||||
<h1>"#, $code, ": ", $name, r#"</h1>
|
||||
<p>"#, $description, r#"</p>
|
||||
<hr />
|
||||
</div>
|
||||
<div role="contentinfo" align="center">
|
||||
<small>Rocket</small>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue