Fossil SCM

Restore this display of "Leaf" and "Closed-Leaf" but now put it after the check-in comment.

drh 2017-11-24 16:06 UTC timeline-improvements
Commit 2df238e5ab37d6f340eda94bcea187c4aa21a94a43fb71754d2f7449e9254f33
1 file changed +11
--- src/timeline.c
+++ src/timeline.c
@@ -464,10 +464,20 @@
464464
465465
/* Generate extra information and hyperlinks to follow the comment.
466466
** Example: "(check-in: [abcdefg], user: drh, tags: trunk)"
467467
*/
468468
cgi_printf("<span class='timelineDetail'>(");
469
+ if( isLeaf ){
470
+ if( db_exists("SELECT 1 FROM tagxref"
471
+ " WHERE rid=%d AND tagid=%d AND tagtype>0",
472
+ rid, TAG_CLOSED) ){
473
+ @ <span class='timelineLeaf'>Closed-Leaf</span>
474
+ }else{
475
+ @ <span class='timelineLeaf'>Leaf</span>
476
+ }
477
+ }
478
+
469479
if( zType[0]=='c' ){
470480
cgi_printf("check-in: ");
471481
hyperlink_to_uuid(zUuid);
472482
}else if( zType[0]=='e' && tagid ){
473483
cgi_printf("technote: ");
@@ -520,10 +530,11 @@
520530
cgi_printf(" id: %d&larr;%d", rid, srcId);
521531
}else{
522532
cgi_printf(" id: %d", rid);
523533
}
524534
}
535
+
525536
cgi_printf(")</span>\n"); /* End of the details section */
526537
527538
tag_private_status(rid);
528539
529540
/* Generate extra hyperlinks at the end of the comment */
530541
--- src/timeline.c
+++ src/timeline.c
@@ -464,10 +464,20 @@
464
465 /* Generate extra information and hyperlinks to follow the comment.
466 ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)"
467 */
468 cgi_printf("<span class='timelineDetail'>(");
 
 
 
 
 
 
 
 
 
 
469 if( zType[0]=='c' ){
470 cgi_printf("check-in: ");
471 hyperlink_to_uuid(zUuid);
472 }else if( zType[0]=='e' && tagid ){
473 cgi_printf("technote: ");
@@ -520,10 +530,11 @@
520 cgi_printf(" id: %d&larr;%d", rid, srcId);
521 }else{
522 cgi_printf(" id: %d", rid);
523 }
524 }
 
525 cgi_printf(")</span>\n"); /* End of the details section */
526
527 tag_private_status(rid);
528
529 /* Generate extra hyperlinks at the end of the comment */
530
--- src/timeline.c
+++ src/timeline.c
@@ -464,10 +464,20 @@
464
465 /* Generate extra information and hyperlinks to follow the comment.
466 ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)"
467 */
468 cgi_printf("<span class='timelineDetail'>(");
469 if( isLeaf ){
470 if( db_exists("SELECT 1 FROM tagxref"
471 " WHERE rid=%d AND tagid=%d AND tagtype>0",
472 rid, TAG_CLOSED) ){
473 @ <span class='timelineLeaf'>Closed-Leaf</span>
474 }else{
475 @ <span class='timelineLeaf'>Leaf</span>
476 }
477 }
478
479 if( zType[0]=='c' ){
480 cgi_printf("check-in: ");
481 hyperlink_to_uuid(zUuid);
482 }else if( zType[0]=='e' && tagid ){
483 cgi_printf("technote: ");
@@ -520,10 +530,11 @@
530 cgi_printf(" id: %d&larr;%d", rid, srcId);
531 }else{
532 cgi_printf(" id: %d", rid);
533 }
534 }
535
536 cgi_printf(")</span>\n"); /* End of the details section */
537
538 tag_private_status(rid);
539
540 /* Generate extra hyperlinks at the end of the comment */
541

Keyboard Shortcuts

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