Fossil SCM

Added timelineComment and infoComment CSS classes, per suggestion by Baptiste Daroussin.

stephan 2013-03-30 10:13 trunk
Commit f9d4e0853b6650294117fd08683aa8358983f974
2 files changed +3 -3 +2 -2
+3 -3
--- src/info.c
+++ src/info.c
@@ -527,14 +527,14 @@
527527
}else{
528528
@ <tr><th>User:</th><td>
529529
hyperlink_to_user(zUser,zDate,"</td></tr>");
530530
}
531531
if( zEComment ){
532
- @ <tr><th>Edited&nbsp;Comment:</th><td>%!w(zEComment)</td></tr>
533
- @ <tr><th>Original&nbsp;Comment:</th><td>%!w(zComment)</td></tr>
532
+ @ <tr><th>Edited&nbsp;Comment:</th><td class="infoComment">%!w(zEComment)</td></tr>
533
+ @ <tr><th>Original&nbsp;Comment:</th><td class="infoComment">%!w(zComment)</td></tr>
534534
}else{
535
- @ <tr><th>Comment:</th><td>%!w(zComment)</td></tr>
535
+ @ <tr><th>Comment:</th><td class="infoComment">%!w(zComment)</td></tr>
536536
}
537537
if( g.perm.Admin ){
538538
db_prepare(&q,
539539
"SELECT rcvfrom.ipaddr, user.login, datetime(rcvfrom.mtime)"
540540
" FROM blob JOIN rcvfrom USING(rcvid) LEFT JOIN user USING(uid)"
541541
--- 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&nbsp;Comment:</th><td>%!w(zEComment)</td></tr>
533 @ <tr><th>Original&nbsp;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&nbsp;Comment:</th><td class="infoComment">%!w(zEComment)</td></tr>
533 @ <tr><th>Original&nbsp;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 @@
357357
}else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){
358358
Blob truncated;
359359
blob_zero(&truncated);
360360
blob_append(&truncated, blob_buffer(&comment), mxWikiLen);
361361
blob_append(&truncated, "...", 3);
362
- @ %w(blob_str(&truncated))
362
+ @ <span class="timelineComment">%w(blob_str(&truncated))</span>
363363
blob_reset(&truncated);
364364
}else{
365
- @ %w(blob_str(&comment))
365
+ @ <span class="timelineComment">%w(blob_str(&comment))</span>
366366
}
367367
blob_reset(&comment);
368368
369369
/* Generate the "user: USERNAME" at the end of the comment, together
370370
** with a hyperlink to another timeline for that user.
371371
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button