44 {% set dependencies = list(get_dependency_status(requirements)) %}
55 {% set anchor_id = normalize(filename) %}
66
7- < section id ="{{ filename }}-button " class ="dependency-table-header text-center ">
8- < button
9- class ="btn text-center "
10- type ="button "
11- data-toggle ="collapse "
12- data-target ="#{{ anchor_id }} "
13- aria-expanded ="true "
14- aria-controls ="{{ anchor_id }} "
15- >
7+ < section id ="{{ filename }}-button " class ="dependency-table-header text-center ">
8+ < button class ="btn text-center "
9+ type ="button "
10+ data-toggle ="collapse "
11+ data-target ="#{{ anchor_id }} "
12+ aria-expanded ="true "
13+ aria-controls ="{{ anchor_id }} ">
1614 < i class ="fa collapse-indicator "> </ i >
1715 {% if counts %}
1816 {{ badge_data.extend(dependencies) or '' }}
1917 < i class ="fas fa-lightbulb " title ="This file counts towards the overall status "> </ i >
2018 {% else %}
21- < i class ="far fa-lightbulb " title ="This file doesn't count towards the overall status "> </ i >
19+ < i class ="far fa-lightbulb "
20+ title ="This file doesn't count towards the overall status "> </ i >
2221 {% endif %}
2322 < h5 > {{ filename }}</ h5 >
2423 </ button >
@@ -27,57 +26,57 @@ <h5>{{ filename }}</h5>
2726 < div class ="collapse show " id ="{{ anchor_id }} ">
2827 < table class ="table table-striped table-sm collapse show ">
2928 < thead >
30- < tr >
31- < th scope ="col "> Package</ th >
32- < th scope ="col " class ="text-right "> Requirement</ th >
33- < th scope ="col " class ="text-right "> Latest</ th >
34- < th scope ="col " class ="text-center "> Status</ th >
35- </ tr >
29+ < tr >
30+ < th scope ="col "> Package</ th >
31+ < th scope ="col " class ="text-right "> Requirement</ th >
32+ < th scope ="col " class ="text-right "> Latest</ th >
33+ < th scope ="col " class ="text-center "> Status</ th >
34+ </ tr >
3635 </ thead >
3736 < tbody >
38- {% for req, status, data in dependencies %}
39- < tr class ="dependency ">
40- < td >
41- < div class ="d-flex flex-row align-items-center flex-wrap ">
42- < div class ="p-2 ">
43- {{ format_internal_link(req, data) | safe }}
44- </ div >
45- < div class ="p-2 ml-auto pkg-links ">
46- {%- if data["package_url"].strip() -%}
47- < a href ="{{ data['package_url'] }} " title ="View on PyPI "> < i class ="fab fa-python "> </ i > </ a >
48- {%- endif -%}
49- {{ format_project_links(data["project_urls"])|safe }}
50- {%- if data["license"].strip() -%}
51- < a
52- class ="license-info-hover-target "
53- href ="# "
54- data-toggle ="tooltip "
55- data-placement ="top "
56- title ="{{ data['license'] }} "
57- > < i class ="far fa-file-alt "> </ i > </ a >
58- {%- endif -%}
37+ {% for req, status, data in dependencies %}
38+ < tr class ="dependency ">
39+ < td >
40+ < div class ="d-flex flex-row align-items-center flex-wrap ">
41+ < div class ="p-2 ">
42+ {{ format_internal_link(req, data) | safe }}
43+ </ div >
44+ < div class ="p-2 ml-auto pkg-links ">
45+ {%- if data["package_url"].strip() -%}
46+ < a href ="{{ data['package_url'] }} " title ="View on PyPI "> < i class ="fab fa-python "> </ i > </ a >
47+ {%- endif -%}
48+ {{ format_project_links(data["project_urls"]) |safe }}
49+ {%- if data["license"].strip() -%}
50+ < a class ="license-info-hover-target "
51+ href ="# "
52+ data-toggle ="tooltip "
53+ data-placement ="top "
54+ title ="{{ data['license'] }} ">
55+ < i class ="far fa-file-alt "> </ i >
56+ </ a >
57+ {%- endif -%}
58+ </ div >
5959 </ div >
60- </ div >
61- </ td >
62- < td class ="text-right "> {{ req.specifier }}</ td >
63- < td class ="text-right "> {{ data["version"] }}</ td >
64- < td class ="status-{{ status }} "> {{ status }}</ td >
65- </ tr >
66- {% endfor %}
60+ </ td >
61+ < td class ="text-right "> {{ req.specifier }}</ td >
62+ < td class ="text-right "> {{ data["version"] }}</ td >
63+ < td class ="status-{{ status }} "> {{ status }}</ td >
64+ </ tr >
65+ {% endfor %}
6766 </ tbody >
6867 < script >
6968 if ( window . matchMedia ( "(any-hover: none)" ) . matches ) {
7069 $ ( 'document' ) . ready ( function ( ) {
7170 $ ( '[data-toggle=tooltip]' ) . tooltip ( ) ;
7271 } ) ;
7372 }
74- </ script >
73+ </ script >
7574 </ table >
7675 </ div >
7776{% endfor %}
7877
7978< div class ="p-2 ml-auto " id ="badge " hx-swap-oob ="true ">
80- < a title ="Show badge URLs " data-toggle ="collapse " href ="#badge-urls " >
81- {{ make_badge(badge_data)|safe }}
79+ < a title ="Show badge URLs " data-toggle ="collapse " href ="#badge-urls ">
80+ {{ make_badge(badge_data) |safe }}
8281 </ a >
8382</ div >
0 commit comments