Skip to content

Commit ea273e6

Browse files
authored
Merge pull request #1548 from rust-lang/site-template-convert-4
Convert compare page to templates
2 parents 571e0e5 + 1736878 commit ea273e6

File tree

13 files changed

+382
-395
lines changed

13 files changed

+382
-395
lines changed

site/src/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ async fn handle_fs_path(req: &Request, path: &str) -> Option<http::Response<hype
609609
let source = match path {
610610
"/index.html" => render_page("graphs.html").await,
611611
"/bootstrap.html"
612+
| "/compare.html"
612613
| "/dashboard.html"
613614
| "/detailed-query.html"
614615
| "/help.html"

site/static/compare.html

Lines changed: 0 additions & 389 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

site/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>rustc performance data</title>
66
<link rel="alternate icon" type="image/png" href="/favicon-32x32.png">
77
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
8-
<link rel="stylesheet" type="text/css" href="perf.css">
8+
<link rel="stylesheet" type="text/css" href="styles/shared.css">
99
{% block head %}{% endblock %}
1010
</head>
1111
<body class="container">

site/templates/pages/bootstrap.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ <h3>This may take a while!</h3>
6666
{% endblock %}
6767
{% block script %}
6868
<script src="uPlot.iife.min.js"></script>
69-
<script src="shared.js"></script>
69+
<script src="scripts/shared.js"></script>
7070
<script src="scripts/bootstrap.js"></script>
7171
{% endblock %}

site/templates/pages/compare.html

Lines changed: 375 additions & 0 deletions
Large diffs are not rendered by default.

site/templates/pages/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<div id="as-of"></div>
1111
{% endblock %}
1212
{% block script %}
13-
<script src="shared.js"></script>
13+
<script src="scripts/shared.js"></script>
1414
<script src="scripts/dashboard.js"></script>
1515
{% endblock %}

0 commit comments

Comments
 (0)