Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-summary.c
diff options
context:
space:
mode:
Commit537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4 (patch)
Author
 Lars Hjemli <hjemli@gmail.com>
2009-08-09 13:27:21 +0200
Committer
 Lars Hjemli <hjemli@gmail.com>
2009-08-09 13:41:54 +0200
Files73b1d25a96dd171c5503fae1fefc6a27a7d58683 /ui-summary.c
cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar
cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar.gz
cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.zip
Parente1782fff8a78b7f265432603351281ad2988bb40 (diff)
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>
1 files changed, 4 insertions, 0 deletions
-rw-r--r--ui-summary.c4
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)
} else
tmp = ctx.repo->readme;
html("<div id='summary'>");
+ if (ctx.repo->about_filter)
+ cgit_open_filter(ctx.repo->about_filter);
html_include(tmp);
+ if (ctx.repo->about_filter)
+ cgit_close_filter(ctx.repo->about_filter);
html("</div>");
}