log: 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:15 +0100
M
ui-log.c
→
ui-log.c
@@ -442,8 +442,10 @@
compile_grep_patterns(&rev.grep_filter); prepare_revision_walk(&rev); - if (pager) + if (pager) { + cgit_print_layout_start(); html("<table class='list nowrap'>"); + } html("<tr class='nohover'>"); if (commit_graph)@@ -526,6 +528,7 @@ ctx.qry.follow);
html("</li>"); } html("</ul>"); + cgit_print_layout_end(); } else if ((commit = get_revision(&rev)) != NULL) { htmlf("<tr class='nohover'><td colspan='%d'>", columns); cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL,