diff options
| author | Lars Hjemli | 2009-08-09 13:27:21 +0200 |
|---|---|---|
| committer | Lars Hjemli | 2009-08-09 13:41:54 +0200 |
| commit | 537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4 (patch) | |
| tree | 73b1d25a96dd171c5503fae1fefc6a27a7d58683 /ui-summary.c | |
| parent | e1782fff8a78b7f265432603351281ad2988bb40 (diff) | |
| download | cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar.gz cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar.bz2 cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.zip | |
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-summary.c')
| -rw-r--r-- | ui-summary.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui-summary.c b/ui-summary.c index f2a9b46..a2c018e 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
| @@ -83,6 +83,10 @@ void cgit_print_repo_readme(char *path) | |||
| 83 | } else | 83 | } else |
| 84 | tmp = ctx.repo->readme; | 84 | tmp = ctx.repo->readme; |
| 85 | html("<div id='summary'>"); | 85 | html("<div id='summary'>"); |
| 86 | if (ctx.repo->about_filter) | ||
| 87 | cgit_open_filter(ctx.repo->about_filter); | ||
| 86 | html_include(tmp); | 88 | html_include(tmp); |
| 89 | if (ctx.repo->about_filter) | ||
| 90 | cgit_close_filter(ctx.repo->about_filter); | ||
| 87 | html("</div>"); | 91 | html("</div>"); |
| 88 | } | 92 | } |
