Skip to content

Commit dfa1c98

Browse files
authored
Merge pull request #1543 from rust-lang/site-template-convert-2
Convert dashboard and detailed-query page to templates
2 parents f37a9fb + 7b25565 commit dfa1c98

File tree

9 files changed

+484
-504
lines changed

9 files changed

+484
-504
lines changed

site/src/server.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,11 @@ async fn handle_fs_path(req: &Request, path: &str) -> Option<http::Response<hype
599599
}
600600

601601
let source = match path {
602-
"/bootstrap.html" | "/help.html" | "/status.html" => TEMPLATES
602+
"/bootstrap.html"
603+
| "/dashboard.html"
604+
| "/detailed-query.html"
605+
| "/help.html"
606+
| "/status.html" => TEMPLATES
603607
.render(&format!("pages/{}", path.trim_start_matches("/")))
604608
.await
605609
.unwrap()

site/static/dashboard.html

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)