aboutsummaryrefslogtreecommitdiff
path: root/ui-summary.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-summary.c')
-rw-r--r--ui-summary.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/ui-summary.c b/ui-summary.c
index ad0b4a7..318148a 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -13,6 +13,11 @@
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>");
@@ -24,12 +29,3 @@ 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>");
- }
-}