- try to reduce code duplication by using same route handler for ajax and csv,
using request->is_ajax to switch the template, and set content-type
- use new HTML5 "download" attribute on links so content-disposition header is
no longer necessary
- download CSV icon is placed on all tables (per report/device/serach section)
- update download CSV link using javascript just before table content is
fetched - this is necessary to make sure updated sidebar query params are
included
The idea here is to allow us to support CSV download in the pages which
display tables by only doing the following:
- (existing routes:) replace "ajax" with "get" route handler
- add logic to switch template in handler, based on request->is_ajax
- write _csv.tt version of the template, to spit out CSV file content
This makes it much easier for new devs to write reports supporting CSV, I
think?
This does not require silly quoting. It adds a "partial"
checkbox in the ports sidebar. If this is ticked, simple
wildcarding * and ? are also supported.
Squashed commit of the following:
commit 567df500f45bca6ead1a1f8b7698253450ad1cb5
Author: Oliver Gorwits <oliver@cpan.org>
Date: Tue Sep 10 22:26:48 2013 +0100
collapse list if more than 10 APs
commit 9dddb2432c1a44d19f4cacc75d64e91feb71e665
Author: Eric A. Miller <emiller@cpan.org>
Date: Mon Sep 9 22:35:28 2013 -0400
add port descr
commit eca417c46ab7dd07a66054ec0104e62b5099748b
Author: Oliver Gorwits <oliver@cpan.org>
Date: Mon Sep 9 21:55:49 2013 +0100
use real port description, and link to filtered ports view
commit e4a43e78ffefa3cd3ad528ac7414dcd959beceaa
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 23:43:42 2013 -0400
add access point channel distribution report
commit b6c803446d2bd02712910535c10a8ea3950ecd62
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 22:06:37 2013 -0400
sync module and file name
commit c70d251a17a791fd34a3d58ce5373c97c7d7eba1
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 21:51:45 2013 -0400
perl tidy
commit be8bc48d1ea9751164e167f155312f80ca0cf2d9
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 21:49:55 2013 -0400
report ap radio power in both mW and dBm
commit 54a88054ab15ee8d0e884e919e040f9f8092824b
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 15:47:18 2013 -0400
access point radios channel and power report
Squashed commit of the following:
commit f53b3778de8dc529c0d161a9339ad14e21294802
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 21:05:39 2013 -0400
remove header from statistics table
commit fa69b1b5900444ca5320502d8c22ecd7ee21df45
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Sep 8 21:00:02 2013 -0400
about page - software and statistics
* for an exact match use "quoting", a bit like what Google does
to enforce a search term
* otherwise terms are assumed to be wildcard bounded and case insensitive
* without quotes, * and ? characters are supported for multi and single
character wildcards.
we could revert this commit if we don't like it.
Squashed commit of the following:
commit aec8628f15801c42374414b13597f2d66ce98748
Author: Eric A. Miller <emiller@cpan.org>
Date: Tue Sep 3 19:31:05 2013 -0400
another try at fixing duplicate pos
commit 7ab021a6adecdf32056ba96c3e1388b639e7cf2b
Author: Eric A. Miller <emiller@cpan.org>
Date: Mon Sep 2 22:38:05 2013 -0400
alternate fix for dupe pos
commit cae64c8fd882fd091446b93a6c8dc7163e9c0e91
Author: Oliver Gorwits <oliver@cpan.org>
Date: Mon Sep 2 22:05:45 2013 +0100
alternative building of modules tree using splice for dupe pos
commit 980e45211b062c8717ff57625ad4d7b80f942886
Author: Oliver Gorwits <oliver@cpan.org>
Date: Mon Sep 2 22:05:19 2013 +0100
fix for updating pos "column" value