about summary refs log tree commit diff
path: root/ui-summary.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-04-29 01:13:08 +0200
committerLars Hjemli <hjemli@gmail.com>2008-04-29 01:13:08 +0200
commit905dbaef5aa33ea11d385b82de0188fee73dd655 (patch)
tree34712da2eef917be04b2acc5585612b65c1e49cc /ui-summary.c
parentui-diff: remove test on object type (diff)
parentAdd 'about site' and 'about repo' pages (diff)
downloadcgit-pink-905dbaef5aa33ea11d385b82de0188fee73dd655.tar.gz
cgit-pink-905dbaef5aa33ea11d385b82de0188fee73dd655.zip
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
Diffstat (limited to '')
-rw-r--r--ui-summary.c14
1 files changed, 9 insertions, 5 deletions
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("<div id='summary'>");
-		html_include(ctx.repo->readme);
-		html("</div>");
-	}
 	html("<table summary='repository info' class='list nowrap'>");
 	cgit_print_branches(ctx.cfg.summary_branches);
 	html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
@@ -29,3 +24,12 @@ void cgit_print_summary()
 	}
 	html("</table>");
 }
+
+void cgit_print_repo_readme()
+{
+	if (ctx.repo->readme) {
+		html("<div id='summary'>");
+		html_include(ctx.repo->readme);
+		html("</div>");
+	}
+}