From c7248b5d52347804c9eeb2338e8c765c62362a95 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 5 May 2013 16:53:35 +0200 Subject: Fix bootstrap look for log page This requires an external CSS file to keep the commit graph and log messages in check. --- ui-log.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-log.c b/ui-log.c index 7973538..78a932b 100644 --- a/ui-log.c +++ b/ui-log.c @@ -186,7 +186,7 @@ void print_commit(struct commit *commit, struct rev_info *revs) html("\n"); - if (revs->graph || ctx.qry.showmsg) { /* Print a second table row */ + if (ctx.qry.showmsg) { /* Print a second table row */ html(""); if (ctx.qry.showmsg) { @@ -358,7 +358,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern prepare_revision_walk(&rev); if (pager) - html(""); + html("
"); html(""); if (commit_graph) @@ -407,14 +407,14 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if (pager) { html("
"); if (ofs > 0) { - cgit_log_link("[prev]", NULL, NULL, ctx.qry.head, + cgit_log_link("[prev]", NULL, "btn btn-small", ctx.qry.head, ctx.qry.sha1, ctx.qry.vpath, ofs - cnt, ctx.qry.grep, ctx.qry.search, ctx.qry.showmsg); html(" "); } if ((commit = get_revision(&rev)) != NULL) { - cgit_log_link("[next]", NULL, NULL, ctx.qry.head, + cgit_log_link("[next]", NULL, "btn btn-small", ctx.qry.head, ctx.qry.sha1, ctx.qry.vpath, ofs + cnt, ctx.qry.grep, ctx.qry.search, ctx.qry.showmsg); -- cgit v1.3-2-g0d8e