diff options
| author | 2009-08-09 20:27:21 (JST) | |
|---|---|---|
| committer | 2009-08-09 20:41:54 (JST) | |
| commit | 537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4 (patch) | |
| tree | 73b1d25a96dd171c5503fae1fefc6a27a7d58683 /ui-repolist.c | |
| parent | e1782fff8a78b7f265432603351281ad2988bb40 (diff) | |
| download | cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.zip cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar.gz | |
Add 'about-filter' and 'repo.about-filter' options
These options can be used to execute a filter command on each about-page,
both top-level and for each repository (repo.about-filter can be used
to override the current about-filter).
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-repolist.c')
| -rw-r--r-- | ui-repolist.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/ui-repolist.c b/ui-repolist.c index 2c13d50..25f076f 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
| @@ -273,6 +273,11 @@ void cgit_print_repolist() | |||
| 273 | 273 | ||
| 274 | void cgit_print_site_readme() | 274 | void cgit_print_site_readme() | 
| 275 | { | 275 | { | 
| 276 | if (ctx.cfg.root_readme) | 276 | if (!ctx.cfg.root_readme) | 
| 277 | html_include(ctx.cfg.root_readme); | 277 | return; | 
| 278 | if (ctx.cfg.about_filter) | ||
| 279 | cgit_open_filter(ctx.cfg.about_filter); | ||
| 280 | html_include(ctx.cfg.root_readme); | ||
| 281 | if (ctx.cfg.about_filter) | ||
| 282 | cgit_close_filter(ctx.cfg.about_filter); | ||
| 278 | } | 283 | } | 
