Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Apache mod_autoindex issue...
- Date: Sun, 26 Oct 2014 10:32:14 +0100
- From: Bruno Raoult <braoult@example.com>
- Subject: Re: [tlug] Apache mod_autoindex issue...
- References: <CAJA1Y2bksxkbMmg4VM5Pa4R0KcHyjCn4tHzWKZ_BE95FMy9Uag@mail.gmail.com> <544C0A08.9060503@dcook.org> <CAJA1Y2Y4H=z3t11k2jjX+9hcwWnoWG5YkXwwwD6cohsOGSqPpg@mail.gmail.com>
On Sat, Oct 25, 2014 at 11:20 PM, Bruno Raoult <braoult@example.com> wrote:Thanks Darren,
On Sat, Oct 25, 2014 at 10:37 PM, Darren Cook <darren@example.com> wrote:> My plan was to hide the "description" column for small screens, such as
> mobile phones.
> ...
> It is therefore impossible to hide the column in my CSS with its class name
> (I can do it with column number, but I don't like it very much).
I was about to say use td:nth-child(4) (or whatever column it is), but
I just saw you have already realized and dismissed that.
But I think that table layout is fairly stable, version to version, so
that is how I would do it.Yes, and this is what I do. However, if I discard a column in .htaccess or in other place,for a specific directory, the output will be broken, meaning a global CSS file is unlikely tobe possible.I just had a first look on "mod_autoindex.c", and it is messy (lots of "if...else...then", with specificoutput for each case). This code would need some cleanup, for sure :)I believe the mistake could be around line 1785 (version 2.4.6 or 2.4.7). But looking further, I can find the same algorithmfor other columns...I made the following patch, and compiled back mod_autoindex.so. It seems to do the job.
br@lorien:~/Downloads/httpd-2.4.6/modules$ diff ./generators/mod_autoindex.c ./generators/mod_autoindex.c.orig
1785c1785
< ap_rvputs(r, "</td><td", (d->style_sheet != NULL) ? " class=\"indexcoldesc\">" : ">", " ", NULL);
---
> ap_rputs("</td><td> ", r);I submitted the patch to the httpd source code, but as it is the first time, I am not sure I did it the right way :)br.
--
2 + 2 = 5, for very large values of 2.
- References:
- [tlug] Apache mod_autoindex issue...
- From: Bruno Raoult
- Re: [tlug] Apache mod_autoindex issue...
- From: Darren Cook
- Re: [tlug] Apache mod_autoindex issue...
- From: Bruno Raoult
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Apache mod_autoindex issue...
- Next by Date: [tlug] [announcement] November 14 (Fri) TLUG nomikai
- Previous by thread: Re: [tlug] Apache mod_autoindex issue...
- Next by thread: [tlug] [announcement] November 14 (Fri) TLUG nomikai
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links