mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
log: move layout into page function
Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
3b220eb22d
commit
23c17d8ff0
2
cmd.c
2
cmd.c
@ -160,7 +160,7 @@ struct cgit_cmd *cgit_get_cmd(void)
|
|||||||
def_cmd(commit, 1, 0, 1, 0),
|
def_cmd(commit, 1, 0, 1, 0),
|
||||||
def_cmd(diff, 1, 0, 1, 0),
|
def_cmd(diff, 1, 0, 1, 0),
|
||||||
def_cmd(info, 1, 0, 0, 1),
|
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(ls_cache, 0, 0, 0, 0),
|
||||||
def_cmd(objects, 1, 0, 0, 1),
|
def_cmd(objects, 1, 0, 0, 1),
|
||||||
def_cmd(patch, 1, 0, 1, 0),
|
def_cmd(patch, 1, 0, 1, 0),
|
||||||
|
5
ui-log.c
5
ui-log.c
@ -442,8 +442,10 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
|
|||||||
compile_grep_patterns(&rev.grep_filter);
|
compile_grep_patterns(&rev.grep_filter);
|
||||||
prepare_revision_walk(&rev);
|
prepare_revision_walk(&rev);
|
||||||
|
|
||||||
if (pager)
|
if (pager) {
|
||||||
|
cgit_print_layout_start();
|
||||||
html("<table class='list nowrap'>");
|
html("<table class='list nowrap'>");
|
||||||
|
}
|
||||||
|
|
||||||
html("<tr class='nohover'>");
|
html("<tr class='nohover'>");
|
||||||
if (commit_graph)
|
if (commit_graph)
|
||||||
@ -526,6 +528,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
|
|||||||
html("</li>");
|
html("</li>");
|
||||||
}
|
}
|
||||||
html("</ul>");
|
html("</ul>");
|
||||||
|
cgit_print_layout_end();
|
||||||
} else if ((commit = get_revision(&rev)) != NULL) {
|
} else if ((commit = get_revision(&rev)) != NULL) {
|
||||||
htmlf("<tr class='nohover'><td colspan='%d'>", columns);
|
htmlf("<tr class='nohover'><td colspan='%d'>", columns);
|
||||||
cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL,
|
cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user