summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-05 16:53:35 +0200
committerGravatar Tom Willemse2013-05-05 17:09:30 +0200
commitc7248b5d52347804c9eeb2338e8c765c62362a95 (patch)
treeaac1ffc49afe45e6aa2d9b757f5aa51ae7257009
parent4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 (diff)
downloadcgit-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.
-rw-r--r--ui-log.c8
1 files 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("</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("&nbsp;");
}
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);