ui-summary: enable arbitrary paths below repo.readme

This change makes it possible to include any number of pages below
the 'about' tab for a repository. The path is assumed to be located
in the same directory as the 'repo.readme' file.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Lars Hjemli
2009-08-09 11:50:34 +02:00
父节点 97b3d25262
当前提交 e1782fff8a
共有 3 个文件被更改,包括 20 次插入8 次删除

2
cmd.c
查看文件

@@ -39,7 +39,7 @@ static void atom_fn(struct cgit_context *ctx)
static void about_fn(struct cgit_context *ctx)
{
if (ctx->repo)
cgit_print_repo_readme();
cgit_print_repo_readme(ctx->qry.path);
else
cgit_print_site_readme();
}