Skip to content

Commit f189dea

Browse files
committed
Adding collapse and expand to HTML report tables
1 parent 671b8dd commit f189dea

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/gitxray/include/html_report/template_table.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<div class="table-section py-3">
2-
<a id="{{table_id}}"></a>
3-
<h3>{{table_title}}</h3>
2+
<div class="d-flex justify-content-between align-items-center">
3+
<a id="{{table_id}}"></a>
4+
<h3 class="flex-grow-1 text-start">{{table_title}}</h3>
5+
<button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#tableCollapse_{{table_id}}" aria-expanded="true" aria-controls="tableCollapse_{{table_id}}">
6+
<span class="toggle-icon">&#8661;</span>
7+
</button>
8+
</div>
9+
<div class="collapse show" id="tableCollapse_{{table_id}}">
410
<table class="table table-striped table-bordered" style="width:100%">
511
<thead>
612
<tr>
@@ -12,4 +18,5 @@ <h3>{{table_title}}</h3>
1218
{{table_rows}}
1319
</tbody>
1420
</table>
21+
</div>
1522
</div>

0 commit comments

Comments
 (0)