aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
* | | Merge branch 'lh/mimetypes'Gravatar Lars Hjemli2009-08-09-5/+45
|\ \ \
| * | | Add support for mime type registration and lookupGravatar Lars Hjemli2009-07-25-5/+45
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes it possible to register mappings from filename extension to mime type in cgitrc and use this mapping when returning blob content in `plain` view. The reason for adding this mapping to cgitrc (as opposed to parsing something like /etc/mime.types) is to allow quick lookup of a limited number of filename extensions (/etc/mime-types on my machine currently contains over 700 entries). NB: A nice addition to this patch would be to parse /etc/mime.types when `plain` view is requested for a file with an extension for which there is no mapping registered in cgitrc. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Expose file extension in tree lists as class to allow nicer tree stylingGravatar Martin Szulecki2009-08-08-1/+7
| | | | | | | | | | | | Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
* | | Introduce noplainemail option to hide email adresses from spambotsGravatar Martin Szulecki2009-08-08-7/+22
|/ / | | | | | | Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
* | Merge branch 'lh/embedded'Gravatar Lars Hjemli2009-07-25-6/+37
|\ \ | | | | | | | | | | | | | | | Conflicts: cgitrc.5.txt ui-shared.c
| * | cgit.h: keep config flags sortedGravatar Lars Hjemli2009-07-25-2/+2
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | cgitrc.5.txt: document 'embedded' and 'noheader'Gravatar Lars Hjemli2009-07-25-0/+9
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | Add support for 'noheader' optionGravatar Lars Hjemli2009-07-25-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | This option can be used to disable the standard cgit page header, which might be useful in combination with the 'embedded' option. Suggested-by: Mark Constable <markc@renta.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | Add support for an 'embedded' option in cgitrcGravatar Lars Hjemli2009-02-02-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When activated, cgit will neither generate http headers nor any 'framing' html elements (like <html> and <body>). Also, all page content is now wrapped in a <div id='cgit'> element to make it easier to select the correct cgit classes when embedded/themed. Suggested-by: Matt Sealey <matt@genesi-usa.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Merge branch 'ml/head-include'Gravatar Lars Hjemli2009-07-25-1/+10
|\ \ \
| *