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>
Cette révision appartient à :
@ -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>");
|
||||
}
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur