Fossil SCM
Restore this display of "Leaf" and "Closed-Leaf" but now put it after the check-in comment.
Commit
2df238e5ab37d6f340eda94bcea187c4aa21a94a43fb71754d2f7449e9254f33
Parent
4438e68de3d53c8…
1 file changed
+11
+11
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -464,10 +464,20 @@ | ||
| 464 | 464 | |
| 465 | 465 | /* Generate extra information and hyperlinks to follow the comment. |
| 466 | 466 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 467 | 467 | */ |
| 468 | 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 | + | |
| 469 | 479 | if( zType[0]=='c' ){ |
| 470 | 480 | cgi_printf("check-in: "); |
| 471 | 481 | hyperlink_to_uuid(zUuid); |
| 472 | 482 | }else if( zType[0]=='e' && tagid ){ |
| 473 | 483 | cgi_printf("technote: "); |
| @@ -520,10 +530,11 @@ | ||
| 520 | 530 | cgi_printf(" id: %d←%d", rid, srcId); |
| 521 | 531 | }else{ |
| 522 | 532 | cgi_printf(" id: %d", rid); |
| 523 | 533 | } |
| 524 | 534 | } |
| 535 | + | |
| 525 | 536 | cgi_printf(")</span>\n"); /* End of the details section */ |
| 526 | 537 | |
| 527 | 538 | tag_private_status(rid); |
| 528 | 539 | |
| 529 | 540 | /* Generate extra hyperlinks at the end of the comment */ |
| 530 | 541 |
| --- 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←%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←%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 |