-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Remove Date row / How to get longer filenames ? #133
Comments
I don't think you can configure ngx-fancyindex not to send this column. You can configure the date/time format to make it send an empty date:
And you can use a custom stylesheet to hide the column in the browser. The date cells helpfully have the
And you can, except that the header cell doesn't have this class so it remains visible. I might consider that a bug: the headers should have classes too so that they can be addressed more easily. However, failing that, a workaround is to just hide the third column, assuming that the third column will always be the date column:
The widths of the remaining columns will technically be wrong at that point, since they were specified as percentages in the html, but you could adjust the column widths in css if needed.
With the latest released version of ngx-fancyindex (0.5.2), the default is to truncate file names at 50 characters but you can increase it like this:
With the next version that will be released after that (0.6.0 or 1.0.0), this option has been removed and the full name will always be sent. |
HACKING.md explains some of this already; I recommend reading it. template.html is an HTML template that gets embedded into ngx-fancyindex when it is compiled. It uses parts extracted from this template when sending output to the browser. ngx-fancyindex is written in the C programming language, and there isn't a mechanism in C to directly include an HTML file into a program. Therefore, template.html has to be converted to a form that can be included in a C program: namely, a C header file. That's what template.h is. Every time template.html is modified, template.h must be regenerated using the template.awk AWK script. |
The request to allow reordering of columns was previously made in #66. Allowing columns to be omitted would probably be easy to implement at the same time. |
Add the aria-sort attribute to the th of the column by which the data is sorted. This is conceivably useful to let screen readers know how the table is sorted, but it also allows CSS styles to be applied, for example to highlight the sorted column header or to change an icon in the column header to indicate the sort direction. This required breaking the start of the table into separate variables so that the column headers can be addressed individually. This is a step toward being able to reorder (aperezdc#66) or remove (aperezdc#133) columns.
Hey folks, thanks for your response, really appreciate that. The background of all this was that I'm using FancyIndex together with an rclone mount that again uses a local cache and refreshes every 24 hrs. So I always had the same date information on all files, kinda ugly for the end user if you ask me. So again thanks for all your great work onto this module! |
The header cells don't have a helpful css class, though. See: issue-1367131802 |
Hey folks,
first off I really like this nginx extension, I've implemented it with OpenResty, and it almost works like a charm :D
But still, there are two things I was not able to answer myself, especially because I'm not a C developer I guess.
It would also be awesome to understand the difference between template.h and template.html
Thanks in advance
The text was updated successfully, but these errors were encountered: