all repos — cgit @ 23c17d8ff01b96619bc1f71274cb44f1425e10f4

a hyperfast web frontend for git written in c

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
commit

23c17d8ff01b96619bc1f71274cb44f1425e10f4

parent

3b220eb22ded98851ca9dee7c3c3e3b0fd02c49b

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M cmd.ccmd.c

@@ -160,7 +160,7 @@ def_cmd(blob, 1, 0, 0, 0),

def_cmd(commit, 1, 0, 1, 0), def_cmd(diff, 1, 0, 1, 0), def_cmd(info, 1, 0, 0, 1), - def_cmd(log, 1, 1, 1, 0), + def_cmd(log, 1, 0, 1, 0), def_cmd(ls_cache, 0, 0, 0, 0), def_cmd(objects, 1, 0, 0, 1), def_cmd(patch, 1, 0, 1, 0),
M ui-log.cui-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,