aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--ui-log.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ui-log.c b/ui-log.c
index adc9a66..631e46d 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -35,7 +35,6 @@ void print_commit(struct commit *commit)
{
struct commitinfo *info;
char *tmp;
- int cols = 2;
info = cgit_parse_commit(commit);
html("<tr><td>");
@@ -67,15 +66,15 @@ void print_commit(struct commit *commit)
}
html("</td></tr>\n");
if (ctx.qry.showmsg) {
+ html("<tr class='nohover'><td></td><td><div class='commit-msg'>");
+ html_txt(info->msg);
+ html("</div><br/></td><td></td>");
if (ctx.repo->enable_log_filecount) {
- cols++;
+ html("<td></td>");
if (ctx.repo->enable_log_linecount)
- cols++;
+ html("<td></td>");
}
- htmlf("<tr class='nohover'><td></td><td colspan='%d'><div class='commit-msg'>",
- cols);
- html_txt(info->msg);
- html("</div><br/></td></tr>\n");
+ html("</tr>\n");
}
cgit_free_commitinfo(info);
}