cgit

commit 90f64ad96d2e4490d68db71554ebce7a54206f80

Author: Lars Hjemli <hjemli@gmail.com>

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 <hjemli@gmail.com>

 ui-summary.c | 14 +++++++++-----
 ui-summary.h | 1 +


diff --git a/ui-summary.c b/ui-summary.c
index 318148a66b741113a0133c232f84f6cc2494dff9..ad0b4a7b251a448201b6d509e6949fe68c1647c8 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -13,11 +13,6 @@ #include "ui-refs.h"
 
 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 @@ 			       NULL, NULL, 0);
 	}
 	html("</table>");
 }
+
+void cgit_print_repo_readme()
+{
+	if (ctx.repo->readme) {
+		html("<div id='summary'>");
+		html_include(ctx.repo->readme);
+		html("</div>");
+	}
+}




diff --git a/ui-summary.h b/ui-summary.h
index 37aedd24554a73faf55fd6c358c95221bef1bfa5..3e130394915d6b7d77785a311fab4f528bd0ed9b 100644
--- a/ui-summary.h
+++ b/ui-summary.h
@@ -2,5 +2,6 @@ #ifndef UI_SUMMARY_H
 #define UI_SUMMARY_H
 
 extern void cgit_print_summary();
+extern void cgit_print_repo_readme();
 
 #endif /* UI_SUMMARY_H */