summaryrefslogtreecommitdiffabout
path: root/ui-log.c
Side-by-side diff
Diffstat (limited to 'ui-log.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-log.c32
1 files changed, 27 insertions, 5 deletions
diff --git a/ui-log.c b/ui-log.c
index 8dd8b89..631e46d 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -46,4 +46,8 @@ void print_commit(struct commit *commit)
html("</td><td>");
+ if (ctx.qry.showmsg)
+ html("<u>");
cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,
sha1_to_hex(commit->object.sha1));
+ if (ctx.qry.showmsg)
+ html("</u>");
html("</td><td>");
@@ -63,2 +67,13 @@ 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) {
+ html("<td></td>");
+ if (ctx.repo->enable_log_linecount)
+ html("<td></td>");
+ }
+ html("</tr>\n");
+ }
cgit_free_commitinfo(info);
@@ -102,4 +117,11 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
html("<tr class='nohover'><th class='left'>Age</th>"
- "<th class='left'>Commit message</th>"
- "<th class='left'>Author</th>");
+ "<th class='left'>Commit message");
+ if (pager) {
+ html(" (");
+ cgit_log_link("toggle", NULL, NULL, ctx.qry.head, ctx.qry.sha1,
+ ctx.qry.path, ctx.qry.ofs, ctx.qry.grep,
+ ctx.qry.search, ctx.qry.showmsg ? 0 : 1);
+ html(")");
+ }
+ html("</th><th class='left'>Author</th>");
if (ctx.repo->enable_log_filecount) {
@@ -138,3 +160,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
ofs - cnt, ctx.qry.grep,
- ctx.qry.search);
+ ctx.qry.search, ctx.qry.showmsg);
html("&nbsp;");
@@ -145,3 +167,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
ofs + cnt, ctx.qry.grep,
- ctx.qry.search);
+ ctx.qry.search, ctx.qry.showmsg);
}
@@ -151,3 +173,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL, NULL, 0,
- NULL, NULL);
+ NULL, NULL, ctx.qry.showmsg);
html("</td></tr>\n");