From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sun, 5 Apr 2015 16:54:57 +0100 Subject: [PATCH 11/17] log: move layout into page function In-Reply-To: References: Message-ID: <6605c182cebb096d216dc7b227a490ad1936aa30.1428248621.git.john@keeping.me.uk> Signed-off-by: John Keeping --- cmd.c | 2 +- ui-log.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd.c b/cmd.c index f26ae0b..b61c736 100644 --- a/cmd.c +++ b/cmd.c @@ -149,7 +149,7 @@ struct cgit_cmd *cgit_get_cmd(void) 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), diff --git a/ui-log.c b/ui-log.c index 32b4c47..b2a3948 100644 --- a/ui-log.c +++ b/ui-log.c @@ -354,8 +354,10 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern compile_grep_patterns(&rev.grep_filter); prepare_revision_walk(&rev); - if (pager) + if (pager) { + cgit_print_layout_start(); html(""); + } html(""); if (commit_graph) @@ -418,6 +420,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern html(""); } html(""); + cgit_print_layout_end(); } else if ((commit = get_revision(&rev)) != NULL) { htmlf("
", columns); cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL, -- 2.4.0.rc0.173.gb1cefcc