Commit Graph

16 Commits (f30f3ea8183a62c38052caf4a0fa7b6193fea5fa)

Author SHA1 Message Date
Anthony Ryan da3f7ea17d Shift table stlying details onto the client
There is almost universal support for the CSS3
:nth-child() pseudo-selector. We're shifting the
responsibility for labeling even and odd rows to
the browser.
2014-06-02 09:02:24 -04:00
Daniel Schömer a989003c62 template.h: viewport width for mobile browsers
Set html5 meta viewport width to device-width. A mobile browser now scales up the directory listing and dir-/filenames are easier to read and click/touch.
2013-12-28 17:58:35 +01:00
David BÉRARD 1b90ae6977 add new line between parent dir and file/dir list, each table row end now with a new line 2013-11-14 14:54:05 +01:00
Adrian Perez de Castro ea30f7fb21 Preserve URL sorting arguments on directory links
If a sorting criteria different than the default is used, carry the URL
arguments to the links pointing to other directories, so the sorting is
"remembered" when navigating across different directories.
2013-10-25 13:00:10 +03:00
Adrian Perez de Castro 9b3cdb5583 Clickable table headers change sort direction
Make table headers clickable, for changing sorting direction of the entries.
Clicking on the name of the headers selects ascending direction, clicking on
the arrow next to it, chooses descending direction. The arrow symbol, for
simplicity, is an Unicode down-arrow symbol, which all reasonably modern
browsers should display fine. Also, most text-only browsers will show the
arrow correctly when running on Unicode-compatible terminals.
2013-10-25 12:21:33 +03:00
Adrian Perez 4b19f3a73f Add fancyindex_css_href configuration option
This allows for inserting a <link> tag in the generated listings pointing to
an additional CSS stylesheet, which will be applied by the browser after the
built-in rules. This allows for super-easy customization of the output look.
2010-06-10 16:56:31 +02:00
Adrian Perez 224db63c53 Save some bytes removing things in the template
* Removed the 'media="screen"', because it is unlikely that an user would
  like to print a file listing.

* Removed unused "#readme" rule in the CSS part. Support for inlining a file
  was discontinued long ago.
2010-06-10 14:52:23 +02:00
Adrian Perez 30337efcb3 Removed half-implemented readme_* directives (#1) 2008-09-11 19:55:52 +02:00
Adrian Perez 2f429b796b - Updated documentation.
- Fixed XHTML 1.0 validation by enclosing JS code into a CDATA section.
2007-09-13 23:40:40 +02:00
Adrian Perez 7e156ff58d - Implemented seperate functions to create header/footer buffers.
- Simplified template.html and make code work with new template. Some vars
  were uneeded.
- Added buffer chain debug macro in module header.
2007-09-11 13:52:53 +02:00
Adrian Perez 0101fd77a1 - Removed unused macro nfi_conf_path_set.
- Fixed flags for the readme mode, now they are disjoint. This fixed some
  other related things.
- Renamed fancyindex_readme_options to fancyindex_readme_mode (shorter
  and clearer, IMHO)
- Renamed fancyindex_mode to fancyindex_include_mode (clearer).
- Checks for bottom/top readme are now properly done.
- Fix: Initialization of readme_flags now is zero instead of NGX_CONF_UNSET.
- Improved iteration of builtin template.
2007-08-30 18:13:05 +02:00
Adrian Perez 855adc70eb - It is ALIVE. 2007-08-30 14:29:41 +02:00
Adrian Perez 059d4a8811 - Fixed substitution in Awk script: we were (erroneusly) stripping 'g'
characters.
- Updated template and C header which results after running the script.
2007-08-24 18:10:11 +02:00
Adrian Perez 1933610719 Moved template size calculation out to Awk script 2007-08-24 15:05:37 +02:00
Adrian Perez cf3c44193b Cierra el ticket #199 2007-08-24 14:07:53 +02:00
Adrian Perez 8d7357aa50 Closes #199 2007-08-24 13:47:59 +02:00