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) => (
|
($code:expr, $name:expr, $description:expr) => (
|
||||||
concat!(r#"
|
concat!(r#"
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>"#, $code, " ", $name, r#"</title>
|
<title>"#, $code, " ", $name, r#"</title>
|
||||||
</head>
|
</head>
|
||||||
<body align="center">
|
<body align="center">
|
||||||
<div align="center">
|
<div role="main" align="center">
|
||||||
<h1>"#, $code, ": ", $name, r#"</h1>
|
<h1>"#, $code, ": ", $name, r#"</h1>
|
||||||
<p>"#, $description, r#"</p>
|
<p>"#, $description, r#"</p>
|
||||||
<hr />
|
<hr />
|
||||||
|
</div>
|
||||||
|
<div role="contentinfo" align="center">
|
||||||
<small>Rocket</small>
|
<small>Rocket</small>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue