diff options
author | Tom Willemse | 2013-05-05 16:53:35 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-05 17:09:30 +0200 |
commit | c7248b5d52347804c9eeb2338e8c765c62362a95 (patch) | |
tree | aac1ffc49afe45e6aa2d9b757f5aa51ae7257009 /ui-log.c | |
parent | 4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 (diff) | |
download | cgit-c7248b5d52347804c9eeb2338e8c765c62362a95.tar.gz cgit-c7248b5d52347804c9eeb2338e8c765c62362a95.zip |
Fix bootstrap look for log page
This requires an external CSS file to keep the commit graph and log
messages in check.
Diffstat (limited to 'ui-log.c')
-rw-r--r-- | ui-log.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -186,7 +186,7 @@ void print_commit(struct commit *commit, struct rev_info *revs) html("</td></tr>\n"); - if (revs->graph || ctx.qry.showmsg) { /* Print a second table row */ + if (ctx.qry.showmsg) { /* Print a second table row */ html("<tr class='nohover'>"); 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("<table class='list nowrap'>"); + html("<table class='table table-striped table-condensed'>"); html("<tr class='nohover'>"); 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("</table><div class='pager'>"); 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); |