I am trying to optimise the sorting of devices on the overview page (
https://<base_url>/devices). As of now devices registered by their IP-Adress are sorted by the leading digit of each segment. I would like to do the following.
My problem is, that I can not find the matching template files within the repository. Can someone point me in the right direction?
My research shows, that PHP has a
ip2long() function that could be of use.
Thank you for your help!
includes/html/pages/devices.inc.php - I found that with
grep -R 'Up/Down Time' . as a unique element.
I tried the debugbar, but across it all I can’t find any reference to that and see it’s using the LegacyController - so guessing it hasn’t been converted over to laravel blades and not going to be able to dig much via that. I know very little about that world though.
That seems to be the right page. I’ll try to wrap my head around the table generation. TBH I expected the sorting to be handled by JS, but it seems to be done by php on loading…
Okay, the table content is returned by an Ajax request to
https://<base_url>/ajax/table/device. I was not able to locate the corresponding script just yet.
I’m no wiser on it really, but have a look at:
They smell relevant to me, but I don’t know how they are called and what magic is going on to leverage them.