|
diff --git a/ui-log.c b/ui-log.c index d212984..2f90778 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -37,5 +37,7 @@ void print_commit(struct commit *commit) |
37 | char *tmp; |
37 | char *tmp; |
| |
38 | int cols = 2; |
38 | |
39 | |
39 | info = cgit_parse_commit(commit); |
40 | info = cgit_parse_commit(commit); |
40 | html("<tr><td>"); |
41 | htmlf("<tr%s><td>", |
| |
42 | ctx.qry.showmsg ? " class='logheader'" : ""); |
41 | tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1)); |
43 | tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1)); |
@@ -45,3 +47,4 @@ void print_commit(struct commit *commit) |
45 | html_link_close(); |
47 | html_link_close(); |
46 | html("</td><td>"); |
48 | htmlf("</td><td%s>", |
| |
49 | ctx.qry.showmsg ? " class='logsubject'" : ""); |
47 | cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, |
50 | cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, |
@@ -63,2 +66,13 @@ void print_commit(struct commit *commit) |
63 | html("</td></tr>\n"); |
66 | html("</td></tr>\n"); |
| |
67 | if (ctx.qry.showmsg) { |
| |
68 | if (ctx.repo->enable_log_filecount) { |
| |
69 | cols++; |
| |
70 | if (ctx.repo->enable_log_linecount) |
| |
71 | cols++; |
| |
72 | } |
| |
73 | htmlf("<tr class='nohover'><td/><td colspan='%d' class='logmsg'>", |
| |
74 | cols); |
| |
75 | html_txt(info->msg); |
| |
76 | html("</td></tr>\n"); |
| |
77 | } |
64 | cgit_free_commitinfo(info); |
78 | cgit_free_commitinfo(info); |
@@ -115,4 +129,11 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern |
115 | html("<tr class='nohover'><th class='left'>Age</th>" |
129 | html("<tr class='nohover'><th class='left'>Age</th>" |
116 | "<th class='left'>Commit message</th>" |
130 | "<th class='left'>Commit message"); |
117 | "<th class='left'>Author</th>"); |
131 | if (pager) { |
| |
132 | html(" ("); |
| |
133 | cgit_log_link("toggle", NULL, NULL, ctx.qry.head, ctx.qry.sha1, |
| |
134 | ctx.qry.path, ctx.qry.ofs, ctx.qry.grep, |
| |
135 | ctx.qry.search, ctx.qry.showmsg ? 0 : 1); |
| |
136 | html(")"); |
| |
137 | } |
| |
138 | html("</th><th class='left'>Author</th>"); |
118 | if (ctx.repo->enable_log_filecount) { |
139 | if (ctx.repo->enable_log_filecount) { |
@@ -151,3 +172,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern |
151 | ofs - cnt, ctx.qry.grep, |
172 | ofs - cnt, ctx.qry.grep, |
152 | ctx.qry.search); |
173 | ctx.qry.search, ctx.qry.showmsg); |
153 | html(" "); |
174 | html(" "); |
@@ -158,3 +179,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern |
158 | ofs + cnt, ctx.qry.grep, |
179 | ofs + cnt, ctx.qry.grep, |
159 | ctx.qry.search); |
180 | ctx.qry.search, ctx.qry.showmsg); |
160 | } |
181 | } |
@@ -164,3 +185,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern |
164 | cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL, NULL, 0, |
185 | cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL, NULL, 0, |
165 | NULL, NULL); |
186 | NULL, NULL, ctx.qry.showmsg); |
166 | html("</td></tr>\n"); |
187 | html("</td></tr>\n"); |
|