summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-04-05 16:54:57 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2015-04-07 15:32:28 +0200
commit80fcfc3a484e740291d97067ff163f1ed9e8914e (patch)
tree1cf5f6b16cada033f7530408f4d83ca4617fbc47
parent0921711d29e422e51c68ef2255dc5e245b729470 (diff)
downloadcgit-80fcfc3a484e740291d97067ff163f1ed9e8914e.tar.gz
log: move layout into page function
Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r--cmd.c2
-rw-r--r--ui-log.c5
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("<table class='list nowrap'>");
+ }
html("<tr class='nohover'>");
if (commit_graph)
@@ -418,6 +420,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
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,