author | Lars Hjemli <hjemli@gmail.com> | 2008-04-28 21:06:57 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-04-28 21:06:57 (UTC) |
commit | 90f64ad96d2e4490d68db71554ebce7a54206f80 (patch) (side-by-side diff) | |
tree | 15805142523538ffce7748a014e9a455b3b08f67 | |
parent | d188ed4f2905e6d10abd26c45572a0d48eb53969 (diff) | |
download | cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.zip cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.tar.gz cgit-90f64ad96d2e4490d68db71554ebce7a54206f80.tar.bz2 |
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>
-rw-r--r-- | ui-summary.c | 14 | ||||
-rw-r--r-- | ui-summary.h | 1 |
2 files changed, 10 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 @@ -10,22 +10,26 @@ #include "html.h" #include "ui-log.h" #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>"); cgit_print_tags(ctx.cfg.summary_tags); if (ctx.cfg.summary_log > 0) { html("<tr class='nohover'><td colspan='4'> </td></tr>"); cgit_print_log(ctx.qry.head, 0, ctx.cfg.summary_log, NULL, 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 37aedd2..3e13039 100644 --- a/ui-summary.h +++ b/ui-summary.h @@ -1,6 +1,7 @@ #ifndef UI_SUMMARY_H #define UI_SUMMARY_H extern void cgit_print_summary(); +extern void cgit_print_repo_readme(); #endif /* UI_SUMMARY_H */ |