aboutsummaryrefslogtreecommitdiffstats
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorJohn Keeping2015-08-14 12:47:12 +0100
committerJason A. Donenfeld2015-08-14 15:46:51 +0200
commit51d9176e4bb5c619481355c6b895c6dec30c4f82 (patch)
treef4a8ca97af15496a2090627c38affc6b86b9be73 /ui-repolist.c
parent764987980ec0e806205b8e075feafd4e010dcbd9 (diff)
downloadcgit-51d9176e4bb5c619481355c6b895c6dec30c4f82.tar.gz
cgit-51d9176e4bb5c619481355c6b895c6dec30c4f82.tar.bz2
cgit-51d9176e4bb5c619481355c6b895c6dec30c4f82.zip
about: move layout into page functions
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 43253ed..ac1b3e3 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -345,9 +345,12 @@ void cgit_print_repolist(void)
345 345
346void cgit_print_site_readme(void) 346void cgit_print_site_readme(void)
347{ 347{
348 cgit_print_layout_start();
348 if (!ctx.cfg.root_readme) 349 if (!ctx.cfg.root_readme)
349 return; 350 goto done;
350 cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme); 351 cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme);
351 html_include(ctx.cfg.root_readme); 352 html_include(ctx.cfg.root_readme);
352 cgit_close_filter(ctx.cfg.about_filter); 353 cgit_close_filter(ctx.cfg.about_filter);
354done:
355 cgit_print_layout_end();
353} 356}