diff --git a/include/html_report b/include/html_report
index 5db51f08..561f31ea 100644
--- a/include/html_report
+++ b/include/html_report
@@ -27,33 +27,13 @@ addHtmlHeader() {
-
+
+
-
-
-
-
Prowler - AWS Security Assessments
@@ -144,7 +124,6 @@ addHtmlHeader() {
- | Status |
Result |
Severity |
AccountID |
@@ -152,12 +131,12 @@ addHtmlHeader() {
Compliance |
Service |
CheckID |
- Check Title |
- Check Output |
+ Check Title |
+ Check Output |
CAF Epic |
- Risk |
- Remediation |
- Link to doc |
+ Risk |
+ Remediation |
+ Docs |
Resource ID |
@@ -180,16 +159,50 @@ addHtmlFooter() {
-
-
-
-
-
-
+
+
+
+ \$(document).ready(function(){
+
+ // Initialise the table with 50 rows, and some search/filtering panes
+ \$('#findingsTable').DataTable( {
+ lengthMenu: [ [50, 100, -1], [50, 100, "All"] ],
+ searchPanes: {
+ cascadePanes: true,
+ viewTotal: true
+ },
+ dom: 'Plfrtip',
+ columnDefs: [
+ {
+ searchPanes: {
+ show: false
+ },
+ // Hide Compliance, Check ID (in favour of Check Title), CAF Epic, Risk, Remediation, Link
+ targets: [4, 6, 9, 10, 11, 12]
+ }
+ ]
+ });
+
+ var maxLength = 30;
+ \$(".show-read-more").each(function(){
+ var myStr = \$(this).text();
+ if(\$.trim(myStr).length > maxLength){
+ var newStr = myStr.substring(0, maxLength);
+ var removedStr = myStr.substring(maxLength, \$.trim(myStr).length);
+ \$(this).empty().html(newStr);
+ \$(this).append(' read more...');
+ \$(this).append('' + removedStr + '');
+ }
+ });
+ \$(".read-more").click(function(){
+ \$(this).siblings(".more-text").contents().unwrap();
+ \$(this).remove();
+ });
+ });
+
+