diff options
-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 | |||
@@ -13,11 +13,6 @@ | |||
13 | 13 | ||
14 | void cgit_print_summary() | 14 | void cgit_print_summary() |
15 | { | 15 | { |
16 | if (ctx.repo->readme) { | ||
17 | html("<div id='summary'>"); | ||
18 | html_include(ctx.repo->readme); | ||
19 | html("</div>"); | ||
20 | } | ||
21 | html("<table summary='repository info' class='list nowrap'>"); | 16 | html("<table summary='repository info' class='list nowrap'>"); |
22 | cgit_print_branches(ctx.cfg.summary_branches); | 17 | cgit_print_branches(ctx.cfg.summary_branches); |
23 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); | 18 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); |
@@ -29,3 +24,12 @@ void cgit_print_summary() | |||
29 | } | 24 | } |
30 | html("</table>"); | 25 | html("</table>"); |
31 | } | 26 | } |
27 | |||
28 | void cgit_print_repo_readme() | ||
29 | { | ||
30 | if (ctx.repo->readme) { | ||
31 | html("<div id='summary'>"); | ||
32 | html_include(ctx.repo->readme); | ||
33 | html("</div>"); | ||
34 | } | ||
35 | } | ||
diff --git a/ui-summary.h b/ui-summary.h index 37aedd2..3e13039 100644 --- a/ui-summary.h +++ b/ui-summary.h | |||
@@ -2,5 +2,6 @@ | |||
2 | #define UI_SUMMARY_H | 2 | #define UI_SUMMARY_H |
3 | 3 | ||
4 | extern void cgit_print_summary(); | 4 | extern void cgit_print_summary(); |
5 | extern void cgit_print_repo_readme(); | ||
5 | 6 | ||
6 | #endif /* UI_SUMMARY_H */ | 7 | #endif /* UI_SUMMARY_H */ |