pfSense-pkg-crowdsec icon indicating copy to clipboard operation
pfSense-pkg-crowdsec copied to clipboard

"standard" tables

Open mmetc opened this issue 2 years ago • 1 comments

This is not a priority and can be done after the first release, but the current datatables look out of place in the pfsense UI.

Would it be feasible to use the same tables as "Status -> DHCP Leases", "Status -> Gateways" etc? Would it require converting the current JS data manip to PHP?

mmetc avatar Oct 12 '23 09:10 mmetc

I am not sure to understand.

"Status -> DHCP Leases" and "Status -> Gateways" are done with some PHP/html files in the pfsense source code: usr/local/www/status_gateways.php and usr/local/www/status_dhcp_leases.php. We can not use it.

Here is a screenshot of the Status->Gateways page. Capture d’écran du 2023-10-13 15-11-15

and here is one of the Crowdsec pages (Metrics one): Capture d’écran du 2023-10-13 15-15-06

If you are talking about the tabs design (Gateways and Gateways group VS acquisition, bucket, parser, (etc.) tabs ), the main difference is that gateway tabs point to different urls : status_gateways.php and status_gateway_groups.php whereas our tabs are on the same page and updated with some ajax request.

When we point to different url, we have the same design :

Capture d’écran du 2023-10-13 15-19-50

I guess we could do some css to make the CrowdSec "ajax tabs" looks like pfSense "url link tabs". Is that what you want ?

julienloizelet avatar Oct 13 '23 06:10 julienloizelet