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>
Lars Hjemli hjemli@gmail.com
Mon, 28 Apr 2008 23:06:57 +0200
2 files changed,
10 insertions(+),
5 deletions(-)
M
ui-summary.c
→
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'> </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>"); + } +}
M
ui-summary.h
→
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 */