From e4628ff4813052939748da3c3519a18b2fe8c14d Mon Sep 17 00:00:00 2001 From: Dave Walker Date: Sun, 19 Apr 2020 10:04:33 +0100 Subject: [PATCH] Increase default rows per page on html report (#217) * Increase default rows per page on html report Previously 10 results were displayed per-page, as the default of DataTables. This change increases the default to 250 results per page and also adds the option for 250, 500, 1000, 2500 and ALL results. In addition, materialize css default was blocking the viewing of the option to display alternative results per-page. This is resolved by calling .formSelect as per https://stackoverflow.com/questions/28258106/materialize-css-select-doesnt-seem-to-render Fixes ffuf/ffuf#216 Signed-off-by: Dave Walker (Daviey) * Updated Changelog and added myself to CONTRIBUTORS Signed-off-by: Dave Walker (Daviey) * Updated CONTRIBUTORS.md to be alphabetical Signed-off-by: Dave Walker (Daviey) --- CHANGELOG.md | 1 + CONTRIBUTORS.md | 2 +- pkg/output/file_html.go | 18 +++++++++++++----- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69c6a49..99b39bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Changed - Added tls renegotiation flag to fix #193 in http.Client + - Fixed HTML report to display select/combo-box for rows per page (and increased default from 10 to 250 rows). - v1.0.2 - Changed diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f99522c..5f9c19c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,9 +1,9 @@ # Contributors - * [bjhulst](https://github.com/bjhulst) * [ccsplit](https://github.com/ccsplit) * [codingo](https://github.com/codingo) * [Damian89](https://github.com/Damian89) +* [Daviey](https://github.com/Daviey) * [delic](https://github.com/delic) * [eur0pa](https://github.com/eur0pa) * [fang0654](https://github.com/fang0654) diff --git a/pkg/output/file_html.go b/pkg/output/file_html.go index 8994b0b..50760c8 100644 --- a/pkg/output/file_html.go +++ b/pkg/output/file_html.go @@ -100,11 +100,19 @@ const ( - +