summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css15
-rw-r--r--ui-log.c14
2 files changed, 21 insertions, 8 deletions
diff --git a/cgit.css b/cgit.css
index a37d218..7928c2f 100644
--- a/cgit.css
+++ b/cgit.css
@@ -122,2 +122,6 @@ table.list tr {
122 122
123table.list tr.logheader {
124 background: #eee;
125}
126
123table.list tr:hover { 127table.list tr:hover {
@@ -145,2 +149,13 @@ table.list td {
145 149
150table.list td.logsubject {
151 font-family: monospace;
152 font-weight: bold;
153}
154
155table.list td.logmsg {
156 font-family: monospace;
157 white-space: pre;
158 padding: 1em 0em 2em 0em;
159}
160
146table.list td a { 161table.list td a {
diff --git a/ui-log.c b/ui-log.c
index adc9a66..00ecd4e 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -40,3 +40,4 @@ void print_commit(struct commit *commit)
40 info = cgit_parse_commit(commit); 40 info = cgit_parse_commit(commit);
41 html("<tr><td>"); 41 htmlf("<tr%s><td>",
42 ctx.qry.showmsg ? " class='logheader'" : "");
42 tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1)); 43 tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1));
@@ -46,9 +47,6 @@ void print_commit(struct commit *commit)
46 html_link_close(); 47 html_link_close();
47 html("</td><td>"); 48 htmlf("</td><td%s>",
48 if (ctx.qry.showmsg) 49 ctx.qry.showmsg ? " class='logsubject'" : "");
49 html("<u>");
50 cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, 50 cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,
51 sha1_to_hex(commit->object.sha1)); 51 sha1_to_hex(commit->object.sha1));
52 if (ctx.qry.showmsg)
53 html("</u>");
54 html("</td><td>"); 52 html("</td><td>");
@@ -74,6 +72,6 @@ void print_commit(struct commit *commit)
74 } 72 }
75 htmlf("<tr class='nohover'><td></td><td colspan='%d'><div class='commit-msg'>", 73 htmlf("<tr class='nohover'><td/><td colspan='%d' class='logmsg'>",
76 cols); 74 cols);
77 html_txt(info->msg); 75 html_txt(info->msg);
78 html("</div><br/></td></tr>\n"); 76 html("</td></tr>\n");
79 } 77 }