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 %}

site/templates/pages/detailed-query.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ <h4>Artifact Size</h4>
104104
{% endblock content %}
105105
{% block script %}
106106
<script src="https://cdnjs.cloudflare.com/ajax/libs/msgpack-lite/0.1.26/msgpack.min.js"></script>
107-
<script src="shared.js"></script>
107+
<script src="scripts/shared.js"></script>
108108
<script src="scripts/detailed-query.js"></script>
109109
{% endblock script %}

site/templates/pages/graphs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ <h3>This may take a while!</h3>
8383
{% endblock %}
8484
{% block script %}
8585
<script src="uPlot.iife.min.js"></script>
86-
<script src="shared.js"></script>
86+
<script src="scripts/shared.js"></script>
8787
<script src="scripts/graphs.js"></script>
8888
{% endblock %}

site/templates/pages/status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
</div>
2424
{% endblock %}
2525
{% block script %}
26-
<script src="shared.js"></script>
26+
<script src="scripts/shared.js"></script>
2727
<script src="scripts/status.js"></script>
2828
{% endblock %}

0 commit comments

Comments
 (0)