Skip to content

Commit f63b497

Browse files
Improve UI a bit
1 parent df46038 commit f63b497

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

assets/report.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ div.category div.crate:last-child {
175175
padding-bottom: 0;
176176
}
177177

178-
div.category div.crate > a {
178+
div.category div.crate > a, div.category div.crate > span.title {
179179
flex: 1;
180180
text-decoration: none;
181181
}

templates/macros.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
UTC
2121
{% endmacro %}
2222

23+
{% macro crate_header() %}
24+
<div class="crate">
25+
<span class="title">Crate</span>
26+
<span class="run">Previous run</span>
27+
<span class="run">Current run</span>
28+
</div>
29+
{% endmacro %}
30+
2331
{% macro crate_div(crate) %}
2432
<div class="crate">
2533
<a href="{{ crate.url|safe }}" target="_blank" rel="noopener">
@@ -37,4 +45,4 @@
3745
</span>
3846
{% endfor %}
3947
</div>
40-
{% endmacro %}
48+
{% endmacro %}

templates/report/results.html

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
{{ name }} ({{ crates.Plain|length }})
3939
</div>
4040
<div class="crates hidden" id="crt-{{ name }}">
41+
{{ macros::crate_header() }}
4142
{% for crate in crates.Plain %}
4243
{{ macros::crate_div(crate=crate) }}
4344
{% endfor %}
@@ -56,6 +57,7 @@
5657
</div>
5758
</div>
5859
<div class="crates" id="{{ name }}-tr{{ loop.index }}">
60+
{{ macros::crate_header() }}
5961
{% for crate in subcrates %}
6062
{{ macros::crate_div(crate=crate) }}
6163
{% endfor %}
@@ -77,6 +79,7 @@
7779
</div>
7880
</div>
7981
<div class="crates" id="{{ name }}-rt{{ loop.index }}">
82+
{{ macros::crate_header() }}
8083
{% for crate in subcrates %}
8184
{{ macros::crate_div(crate=crate) }}
8285
{% endfor %}

0 commit comments

Comments
 (0)