2222 {{ content }}
2323 </ div >
2424
25+ <!-- TODO clean up this code a bit -->
26+
27+ {% assign folders = "" | split: ", " %}
2528 {% for image in site.static_files %}
26- {% if image.path contains 'benchmarks' %}
27- < figure >
28- < img src ="{{ site.baseurl }}{{ image.path }} " alt ="image " width ="30% " />
29- < figcaption > {{ image.name }}</ figcaption >
30- </ figure >
29+ {% if image.path contains 'criterion/' %}
30+ {% assign imagepath = image.path | split: "/" %}
31+ {% for subpath in imagepath %}
32+ {% if forloop.index0 == 3 %}
33+ {% assign folders = folders | append: pathName %}
34+ {% endif %}
35+ {% endfor %}
3136 {% endif %}
3237 {% endfor %}
38+ {% assign folders = folders | uniq %}
39+
40+ <!-- {% assign folders = "" | split: ", " %}
41+ {% for folder in site.static_files %}
42+ {% if folder.path contains 'criterion/' %}
43+ {% assign temp = folder.path | split: 'criterion/' %}
44+ {% assign pathName = temp[1] | split: '/' | first %}
45+ {% assign pathName = pathName | split: ", " %}
46+ {% assign folders = folders | concat: pathName %}
47+ {% endif %}
48+ {% endfor%}
49+ {% assign folders = folders | uniq %} -->
50+
51+ <!-- TODO check if the folders list is empty, if so, display corresponding message -->
52+ <!-- TODO add text that explains the violin plots -->
53+
54+ < ul class ="tab " data-tab ="benchmarks ">
55+ {% for folder in folders %}
56+ < li {% if forloop.index ==1 %} class ="active " {% endif %} >
57+ < a href =""> {{ folder }}</ a >
58+ </ li >
59+ {% endfor%}
60+ </ ul >
61+ < ul class ="tab-content " id ="benchmarks ">
62+ {% for folder in folders %}
63+ < li {% if forloop.index ==1 %} class ="active " {% endif %} >
64+ < br >
65+ {% for image in site.static_files %}
66+ {% if image.path contains folder %}
67+ < figure >
68+ < img src ="{{ site.baseurl }}{{ image.path }} " alt ="image " width ="50% " />
69+ < figcaption > {{ image.name }}</ figcaption >
70+ </ figure >
71+ {% endif %}
72+ {% endfor%}
73+ </ li >
74+ {% endfor%}
75+ </ ul >
3376</ div >
0 commit comments