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>
This commit is contained in:
Lars Hjemli 2008-04-28 23:06:57 +02:00
parent d188ed4f29
commit 90f64ad96d
2 changed files with 10 additions and 5 deletions

View File

@ -13,11 +13,6 @@
void cgit_print_summary() 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'>"); html("<table summary='repository info' class='list nowrap'>");
cgit_print_branches(ctx.cfg.summary_branches); cgit_print_branches(ctx.cfg.summary_branches);
html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>"); html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
@ -29,3 +24,12 @@ void cgit_print_summary()
} }
html("</table>"); html("</table>");
} }
void cgit_print_repo_readme()
{
if (ctx.repo->readme) {
html("<div id='summary'>");
html_include(ctx.repo->readme);
html("</div>");
}
}

View File

@ -2,5 +2,6 @@
#define UI_SUMMARY_H #define UI_SUMMARY_H
extern void cgit_print_summary(); extern void cgit_print_summary();
extern void cgit_print_repo_readme();
#endif /* UI_SUMMARY_H */ #endif /* UI_SUMMARY_H */