Commit graph

276 commits

Author SHA1 Message Date
Adrian Perez
29e039e787 Merge pull request #35 from yzwduck/master
Fix Windows builds
2016-01-26 18:43:55 +02:00
YeahO_O Yuan
bbd0300488 Fix Windows builds
Suppress warnings for:
* non-ascii character;
* non-constant aggregate initializer;
* assignment within conditional expression;
* return value type mismatch.
2016-01-25 19:45:06 +08:00
janglapuk
07c4288e64 Added title attribute for each dir or file 2015-08-30 10:29:30 +08:00
stayn0ided
69105c65d8 fixed readme theme section 2015-08-23 12:51:47 +02:00
Peter Wemm
e5deb93745 Fix typo in fancyindex_hide_symlinks that causes a crash. 2015-08-16 21:18:13 -07:00
Adrian Perez de Castro
4d0200d22c README: Add one more theme 2015-08-17 01:08:23 +03:00
Adrian Perez de Castro
db017f815c CHANGELOG: Fix subsubsection spacing 2015-08-17 00:27:10 +03:00
Adrian Perez de Castro
c0c6d8bfc4 CHANGELOG: Make version numbers clickable 2015-08-17 00:25:28 +03:00
Adrian Perez de Castro
3f93d1f01d Fix propagation of fancyindex_css_href configuration directive
The value for fancyindex_css_href was not being propagated properly, so
overriding its value did not work as expected. For example the following
configuration:

    http {
	# ...
	fancyindex_css_href "/css/global.css";

	location /subdir/ {
	    fancyindex_css_href "/css/local.css";
	}
    }

would always use "global.css", even when accessing file listings under
"/subdir".

This patch fixes the issue.
2015-08-17 00:20:53 +03:00
Adrian Perez de Castro
5549286d39 Mark unused variables to avoid compiler warnings/errors
This avoids the compiler complaning when warnings for unused variables are
enabled.
2015-08-17 00:15:25 +03:00
Adrian Perez de Castro
13170fb6e6 Fix a couple of code style and indentation issues 2015-08-17 00:14:53 +03:00
Adrian Perez de Castro
5599bbebba Allow specifying timestamp format with fancyindex_time_format
This patch adds a new configuration directive fancyindex_time_format, which
accepts a strftime()-style format string used to format the timestamps in the
generated listings. The accepted format specifiers are an useful subset of
those supported by strftime(), but the libc function is not used to make the
output of the module stable and locale-independent.

This fixes issue #23.
2015-08-16 23:54:32 +03:00
Adrian Perez de Castro
fd0bbd7fb8 Fix indentation and spacing 2015-08-16 17:22:19 +03:00
Adrian Perez de Castro
cf8197c991 Fix initializer of fancyindex_hide_symlinks flag definition 2015-08-16 17:21:31 +03:00
Adrian Perez de Castro
42d10a2a24 Add option to hide symbolic links from generated listings
This adds a new "fancyindex_hide_symlinks" configuration flag, which will
filter out symbolic links from the generated file listings when enabled.

Feature suggested by Peter Wemm (https://github.com/DarkHelmet433)

Fixes issue #27
2015-08-16 13:08:04 +03:00
Adrian Perez de Castro
f39d834bff Record removal of top-level "parent" link in CHANGELOG 2015-08-16 02:29:43 +03:00
Thomas P
97987a45e4 Do not display the parent dir link at the root
If fancy indexing is used at the root of a webserver, it will still display
a "Parent Directory" link even when listing the webserver's root. This should
not happen as it outputs a useless link.
2015-08-16 02:27:37 +03:00
Adrian Perez de Castro
3f3b408c17 Mention http_addition_module warning at config time in CHANGELOG.md 2015-08-09 14:19:21 +03:00
Adrian Perez de Castro
f30f3ea818 Fix typo in CHANGELOG.md 2015-08-09 14:19:09 +03:00
Adrian Perez de Castro
fdce427a5c README: Mention the need for ngx_http_addition_module
The fancyindex_footer and fancyindex_header settings need the standard Nginx
ngx_http_addition_module built into Nginx. Add a note to this effect in the
README.

Also, a warning is issued at configuration time if the addition module is not
enabled in the configuration.

Closes issue #26.
2015-08-09 14:14:40 +03:00
Adrian Perez de Castro
b4bf5e9891 Use valid Markdown formatting in CHANGELOG.md 2015-02-19 13:18:17 +01:00
Adrian Perez de Castro
f358f406a0 Release version 0.3.5 2015-02-19 13:16:36 +01:00
Martin Herkt
dc64f24bbc Make file name length limit configurable 2015-02-19 13:10:27 +01:00
Mim
7a07987ad3 Make sorting criterion configurable 2015-02-19 13:06:27 +01:00
Adrian Perez de Castro
e5cbf4873d Link to theme designed by @TheInsomniac from README
Adds a link to the nice theme designed by @TheInsomiac, which is a
great example of advanced theming using "fancyindex_header" and
"fancyindex_footer".

Closes issue #11
2014-11-05 11:47:15 +02:00
Adrian Perez de Castro
4d1aa8680e Added drone.io status badge to README 2014-09-19 13:10:26 +03:00
Adrian Perez de Castro
edb81b0acc Remove devtodo's .todo 2014-09-08 10:50:49 +03:00
Adrian Perez de Castro
0064164d4e Convert HACKING.rst to Markdown 2014-09-08 10:49:15 +03:00
Adrian Perez de Castro
00c3ca3730 Rename NEWS.rst to CHANGELOG.md
Follow the recommendations from http://keepachangelog.com/
2014-09-08 10:34:51 +03:00
Adrian Perez de Castro
3de8a4daca Release version 0.3.4 2014-09-03 14:21:04 +03:00
Adrian Perez
a2d30629ed Merge pull request #13 from anthonyryan1/master
Shift table styling details onto the client
2014-09-03 14:08:34 +03:00
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
Adrian Perez
b1eb0a4c44 Merge pull request #9 from quatauta/master
HTML template: Add meta viewport for mobile browsers
2014-01-04 07:09:14 -08: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
Daniel Schömer
dc2bb3a42b template.html: 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:56:13 +01:00
Adrian Perez
47e36a788f Merge pull request #8 from polymorf/master
Add new line between parent dir and file/dir list
2013-11-15 01:57:10 -08: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
87e4206159 Release version 0.3.3 2013-10-25 13:06:44 +03: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 de Castro
1226d363be Support changing the sort direction of elements
When choosing different sorting criteria for the elements (with the "?C=x"
URL argument), allow also specifying a second "O=x" argument for the
direction: "?C=x&O=A" selects ascending direction, while "?C=x&O=D" chooses
descending direction.
2013-10-24 21:45:18 +03:00
Adrian Perez de Castro
d78536c9a4 Support sorting files using mtime or size
This introduces Apache-style URL arguments to specify how to sort the
entries in the generated listings:

 - Appending "?C=M" sorts by modification time (mtime).
 - Appending "?C=S" sorts by file size.
 - Any other (or no arguments) use the default sorting, by name.
2013-10-24 17:38:48 +03:00
Adrian Perez de Castro
fa6455a011 Release version 0.3.2 2013-06-05 11:43:25 +03:00
Adrian Perez de Castro
6cf0bf8ad8 Update copyright header 2013-06-05 11:38:34 +03:00
Adrian Perez
fd3950172a Merge pull request #4 from davidjb/master
Ensure correct 200 status is sent to clients on successful listing
2013-04-22 04:56:57 -07:00
David\ Beitey
aba75b3c45 Ensure fancyindex is sending NGX_HTTP_OK (200) as the status vs HTTP_OK which is 0. Without this, connections sit waiting forever. 2013-04-19 11:10:44 +10:00
Adrian Perez
2034d0ad35 Initialize headers_out.status to NGX_OK and improve error check
When issuing subrequests (currently for non-builtin headers and footers),
initialize the headers_out.status field to NGX_OK.

Also, change the check of the result from ngx_http_send_header() to only
check for NGX_OK, as it is redundant to check it and also NGX_ERROR.
2012-03-14 22:30:26 +02:00
Stefan Rubner
ea6323f92c Ooops. Didn't fix the actual check but just added the comment instead. Fixed. 2012-03-14 00:29:11 +01:00
Stefan Rubner
07614d5abe Fixed the wrong status code check when including header/footer in NGinx 1.1.16
where ngx_http_subrequests returns NGX_OK (0) and not NGX_HTTP_OK (200) on a
successful completion of the subrequest.
2012-03-08 23:49:32 +01:00
Adrian Perez
607159a61d Update README with some bits
More exactly:

* In the requirements section, state that the module will work with
  any version of Nginx newer than 0.7.x

* Updated URL to the Nginx wiki, using now wiki.nginx.org

* Specifying a custom CSS works, the README was contradicting the code.
  FWIW, removed status markers from features in the file.

* Made the build instructions a bit more generic.
2012-01-18 00:31:22 +02:00