9
9
< img class ="logo " src ="{{site.baseurl}}/assets/img/rust-python-logo.svg " alt ="RustPython Logo ">
10
10
</ div >
11
11
< div class ="pl-md-2 ">
12
- < div class ="section-title "> Benchmarks </ div >
13
- < div class ="title "> {{ site.title }} {{ page.title | escape }}</ div >
12
+ < div class ="section-title "> RustPython </ div >
13
+ < div class ="title "> {{ page.title | escape }}</ div >
14
14
< small > {{ site.benchmarks-intro }}</ small >
15
15
</ div >
16
16
</ div >
22
22
{{ content }}
23
23
</ div >
24
24
25
- <!-- TODO clean up this code a bit -->
26
-
27
25
{% assign folders = "" | split: ", " %}
28
26
{% for image in site.static_files %}
29
27
{% if image.path contains 'criterion/' %}
48
46
{% endfor%}
49
47
{% assign folders = folders | uniq %} -->
50
48
51
- <!-- TODO check if the folders list is empty, if so, display corresponding message -->
52
- <!-- TODO add text that explains the violin plots -->
53
-
49
+ {% if folders.size == 0 %}
50
+ < p style ="color: red; "> There are no benchmarks to be displayed.</ p >
51
+ < p > This shouldn't be happening, please contact one of the maintainers
52
+ through < a href ="https://gitter.im/rustpython/Lobby "> Gitter</ a > to report this problem.</ p >
53
+ {% else %}
54
54
< ul class ="tab " data-tab ="benchmarks ">
55
55
{% for folder in folders %}
56
56
< li {% if forloop.index ==1 %} class ="active " {% endif %} >
65
65
{% for image in site.static_files %}
66
66
{% if image.path contains folder %}
67
67
< figure >
68
- < img src ="{{ site.baseurl }}{{ image.path }} " alt ="image " width =" 50% " />
68
+ < img src ="{{ site.baseurl }}{{ image.path }} " alt ="image " />
69
69
< figcaption > {{ image.name }}</ figcaption >
70
70
</ figure >
71
71
{% endif %}
72
72
{% endfor%}
73
73
</ li >
74
74
{% endfor%}
75
75
</ ul >
76
+ {% endif %}
76
77
</ div >
0 commit comments