mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
63bd3a18ad
Introduced changes: - refactor the cli script used for report generation - introduce failed jobs report generator - cover job report generation with tests - add job failure rate - add test cases failure rate - add current branch / other branches statistic for failed jobs / testcases
58 lines
2.2 KiB
HTML
58 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>{{title}}</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="https://unpkg.com/bootstrap-table@1.22.1/dist/bootstrap-table.min.css" rel="stylesheet" />
|
|
<style>
|
|
.text-toggle, .full-text { cursor: pointer; }
|
|
th:nth-child(1), td:nth-child(1) { width: 5%; }
|
|
th:nth-child(2), td:nth-child(2),
|
|
th:nth-child(3), td:nth-child(3) { width: 30%; }
|
|
th, td {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
h2 {
|
|
margin-top: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">{{table}}</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://unpkg.com/bootstrap-table@1.22.1/dist/bootstrap-table.min.js"></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('table.table td').each(function() {
|
|
var cell = $(this);
|
|
if (cell.text().length > 100) {
|
|
var originalText = cell.text();
|
|
var displayText = originalText.substring(0, 100) + '...';
|
|
cell.html('<span class="text-toggle">' + displayText + '</span><span class="full-text" style="display: none;">' + originalText + '</span>');
|
|
cell.append('<a href="#" class="toggle-link">Show More</a>');
|
|
}
|
|
});
|
|
|
|
$('body').on('click', '.toggle-link', function(e) {
|
|
e.preventDefault();
|
|
var link = $(this);
|
|
var textSpan = link.siblings('.full-text');
|
|
var toggleSpan = link.siblings('.text-toggle');
|
|
if (textSpan.is(':visible')) {
|
|
link.text('Show More');
|
|
textSpan.hide();
|
|
toggleSpan.show();
|
|
} else {
|
|
link.text('Show Less');
|
|
textSpan.show();
|
|
toggleSpan.hide();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|