From 905dbaef5aa33ea11d385b82de0188fee73dd655 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 28 Apr 2008 23:13:08 +0000 Subject: Merge branch 'lh/about' * lh/about: Add 'about site' and 'about repo' pages Prepare for 'about site' page / add 'root-readme' option to cgitrc Make it possible for a single cmd to work both with and without a repo Re-enable 'index-info' and add support for 'root-desc' in cgitrc Move included header-file out of repolist table Prepare for 'about repo' page --- (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 v0.9.0.2