Commit Graph

5 Commits

Author SHA1 Message Date
Oliver Gorwits
ce57cdba69 Based on jeneric's CSV download templates;
- 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?
2013-09-20 09:23:57 +01:00
Eric A. Miller
d3553d2623 add csv download to duplex mismatch, half duplex, and port utilization reports 2013-09-19 22:30:27 -04:00
Oliver Gorwits
282e2d9c7c Revert "new port-search wildcarding - bad idea?"
This reverts commit 947614ddd8.
2013-09-10 23:24:12 +01:00
Oliver Gorwits
947614ddd8 new port-search wildcarding - bad idea?
* 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.
2013-09-08 23:44:27 +01:00
Oliver Gorwits
9d3f3ee179 add Half Duplex Ports report 2013-09-06 00:23:31 +01:00