summary: move layout into page function Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Fri, 14 Aug 2015 12:47:18 +0100
2 files changed,
3 insertions(+),
1 deletions(-)
M
ui-summary.c
→
ui-summary.c
@@ -48,6 +48,7 @@ columns++;
if (ctx.repo->enable_log_linecount) columns++; + cgit_print_layout_start(); html("<table summary='repository info' class='list nowrap'>"); cgit_print_branches(ctx.cfg.summary_branches); htmlf("<tr class='nohover'><td colspan='%d'> </td></tr>", columns);@@ -60,6 +61,7 @@ }
urls = 0; cgit_add_clone_urls(print_url); html("</table>"); + cgit_print_layout_end(); } /* The caller must free the return value. */