Fossil SCM
Added timelineComment and infoComment CSS classes, per suggestion by Baptiste Daroussin.
Commit
f9d4e0853b6650294117fd08683aa8358983f974
Parent
fc413110eb990d2…
2 files changed
+3
-3
+2
-2
+3
-3
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -527,14 +527,14 @@ | ||
| 527 | 527 | }else{ |
| 528 | 528 | @ <tr><th>User:</th><td> |
| 529 | 529 | hyperlink_to_user(zUser,zDate,"</td></tr>"); |
| 530 | 530 | } |
| 531 | 531 | if( zEComment ){ |
| 532 | - @ <tr><th>Edited Comment:</th><td>%!w(zEComment)</td></tr> | |
| 533 | - @ <tr><th>Original Comment:</th><td>%!w(zComment)</td></tr> | |
| 532 | + @ <tr><th>Edited Comment:</th><td class="infoComment">%!w(zEComment)</td></tr> | |
| 533 | + @ <tr><th>Original Comment:</th><td class="infoComment">%!w(zComment)</td></tr> | |
| 534 | 534 | }else{ |
| 535 | - @ <tr><th>Comment:</th><td>%!w(zComment)</td></tr> | |
| 535 | + @ <tr><th>Comment:</th><td class="infoComment">%!w(zComment)</td></tr> | |
| 536 | 536 | } |
| 537 | 537 | if( g.perm.Admin ){ |
| 538 | 538 | db_prepare(&q, |
| 539 | 539 | "SELECT rcvfrom.ipaddr, user.login, datetime(rcvfrom.mtime)" |
| 540 | 540 | " FROM blob JOIN rcvfrom USING(rcvid) LEFT JOIN user USING(uid)" |
| 541 | 541 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -527,14 +527,14 @@ | |
| 527 | }else{ |
| 528 | @ <tr><th>User:</th><td> |
| 529 | hyperlink_to_user(zUser,zDate,"</td></tr>"); |
| 530 | } |
| 531 | if( zEComment ){ |
| 532 | @ <tr><th>Edited Comment:</th><td>%!w(zEComment)</td></tr> |
| 533 | @ <tr><th>Original Comment:</th><td>%!w(zComment)</td></tr> |
| 534 | }else{ |
| 535 | @ <tr><th>Comment:</th><td>%!w(zComment)</td></tr> |
| 536 | } |
| 537 | if( g.perm.Admin ){ |
| 538 | db_prepare(&q, |
| 539 | "SELECT rcvfrom.ipaddr, user.login, datetime(rcvfrom.mtime)" |
| 540 | " FROM blob JOIN rcvfrom USING(rcvid) LEFT JOIN user USING(uid)" |
| 541 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -527,14 +527,14 @@ | |
| 527 | }else{ |
| 528 | @ <tr><th>User:</th><td> |
| 529 | hyperlink_to_user(zUser,zDate,"</td></tr>"); |
| 530 | } |
| 531 | if( zEComment ){ |
| 532 | @ <tr><th>Edited Comment:</th><td class="infoComment">%!w(zEComment)</td></tr> |
| 533 | @ <tr><th>Original Comment:</th><td class="infoComment">%!w(zComment)</td></tr> |
| 534 | }else{ |
| 535 | @ <tr><th>Comment:</th><td class="infoComment">%!w(zComment)</td></tr> |
| 536 | } |
| 537 | if( g.perm.Admin ){ |
| 538 | db_prepare(&q, |
| 539 | "SELECT rcvfrom.ipaddr, user.login, datetime(rcvfrom.mtime)" |
| 540 | " FROM blob JOIN rcvfrom USING(rcvid) LEFT JOIN user USING(uid)" |
| 541 |
+2
-2
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -357,14 +357,14 @@ | ||
| 357 | 357 | }else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ |
| 358 | 358 | Blob truncated; |
| 359 | 359 | blob_zero(&truncated); |
| 360 | 360 | blob_append(&truncated, blob_buffer(&comment), mxWikiLen); |
| 361 | 361 | blob_append(&truncated, "...", 3); |
| 362 | - @ %w(blob_str(&truncated)) | |
| 362 | + @ <span class="timelineComment">%w(blob_str(&truncated))</span> | |
| 363 | 363 | blob_reset(&truncated); |
| 364 | 364 | }else{ |
| 365 | - @ %w(blob_str(&comment)) | |
| 365 | + @ <span class="timelineComment">%w(blob_str(&comment))</span> | |
| 366 | 366 | } |
| 367 | 367 | blob_reset(&comment); |
| 368 | 368 | |
| 369 | 369 | /* Generate the "user: USERNAME" at the end of the comment, together |
| 370 | 370 | ** with a hyperlink to another timeline for that user. |
| 371 | 371 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -357,14 +357,14 @@ | |
| 357 | }else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ |
| 358 | Blob truncated; |
| 359 | blob_zero(&truncated); |
| 360 | blob_append(&truncated, blob_buffer(&comment), mxWikiLen); |
| 361 | blob_append(&truncated, "...", 3); |
| 362 | @ %w(blob_str(&truncated)) |
| 363 | blob_reset(&truncated); |
| 364 | }else{ |
| 365 | @ %w(blob_str(&comment)) |
| 366 | } |
| 367 | blob_reset(&comment); |
| 368 | |
| 369 | /* Generate the "user: USERNAME" at the end of the comment, together |
| 370 | ** with a hyperlink to another timeline for that user. |
| 371 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -357,14 +357,14 @@ | |
| 357 | }else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ |
| 358 | Blob truncated; |
| 359 | blob_zero(&truncated); |
| 360 | blob_append(&truncated, blob_buffer(&comment), mxWikiLen); |
| 361 | blob_append(&truncated, "...", 3); |
| 362 | @ <span class="timelineComment">%w(blob_str(&truncated))</span> |
| 363 | blob_reset(&truncated); |
| 364 | }else{ |
| 365 | @ <span class="timelineComment">%w(blob_str(&comment))</span> |
| 366 | } |
| 367 | blob_reset(&comment); |
| 368 | |
| 369 | /* Generate the "user: USERNAME" at the end of the comment, together |
| 370 | ** with a hyperlink to another timeline for that user. |
| 371 |