Skip to content

Convert compare page to templates #1548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ async fn handle_fs_path(req: &Request, path: &str) -> Option<http::Response<hype
let source = match path {
"/index.html" => render_page("graphs.html").await,
"/bootstrap.html"
| "/compare.html"
| "/dashboard.html"
| "/detailed-query.html"
| "/help.html"
Expand Down
389 changes: 0 additions & 389 deletions site/static/compare.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion site/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>rustc performance data</title>
<link rel="alternate icon" type="image/png" href="/favicon-32x32.png">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" type="text/css" href="perf.css">
<link rel="stylesheet" type="text/css" href="styles/shared.css">
{% block head %}{% endblock %}
</head>
<body class="container">
Expand Down
2 changes: 1 addition & 1 deletion site/templates/pages/bootstrap.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ <h3>This may take a while!</h3>
{% endblock %}
{% block script %}
<script src="uPlot.iife.min.js"></script>
<script src="shared.js"></script>
<script src="scripts/shared.js"></script>
<script src="scripts/bootstrap.js"></script>
{% endblock %}
375 changes: 375 additions & 0 deletions site/templates/pages/compare.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/templates/pages/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<div id="as-of"></div>
{% endblock %}
{% block script %}
<script src="shared.js"></script>
<script src="scripts/shared.js"></script>
<script src="scripts/dashboard.js"></script>
{% endblock %}
2 changes: 1 addition & 1 deletion site/templates/pages/detailed-query.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ <h4>Artifact Size</h4>
{% endblock content %}
{% block script %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/msgpack-lite/0.1.26/msgpack.min.js"></script>
<script src="shared.js"></script>
<script src="scripts/shared.js"></script>
<script src="scripts/detailed-query.js"></script>
{% endblock script %}
2 changes: 1 addition & 1 deletion site/templates/pages/graphs.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ <h3>This may take a while!</h3>
{% endblock %}
{% block script %}
<script src="uPlot.iife.min.js"></script>
<script src="shared.js"></script>
<script src="scripts/shared.js"></script>
<script src="scripts/graphs.js"></script>
{% endblock %}
2 changes: 1 addition & 1 deletion site/templates/pages/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
</div>
{% endblock %}
{% block script %}
<script src="shared.js"></script>
<script src="scripts/shared.js"></script>
<script src="scripts/status.js"></script>
{% endblock %}