From 90f64ad96d2e4490d68db71554ebce7a54206f80 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 28 Apr 2008 23:06:57 +0200 Subject: Prepare for 'about repo' page Each repo can include an external file which used to be included on the top of the summary page, but it will now soon get a page of it own. Signed-off-by: Lars Hjemli --- ui-summary.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'ui-summary.c') diff --git a/ui-summary.c b/ui-summary.c index 318148a..ad0b4a7 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -13,11 +13,6 @@ void cgit_print_summary() { - if (ctx.repo->readme) { - html("
"); - html_include(ctx.repo->readme); - html("
"); - } html(""); cgit_print_branches(ctx.cfg.summary_branches); html(""); @@ -29,3 +24,12 @@ void cgit_print_summary() } html("
 
"); } + +void cgit_print_repo_readme() +{ + if (ctx.repo->readme) { + html("
"); + html_include(ctx.repo->readme); + html("
"); + } +} -- cgit v1.2.3-24-g4f1b