| | @@ -216,14 +216,16 @@ |
| 216 | 216 | @ inherited from |
| 217 | 217 | hyperlink_to_uuid(zOrigUuid); |
| 218 | 218 | }else{ |
| 219 | 219 | @ propagates to descendants |
| 220 | 220 | } |
| 221 | +#if 0 |
| 221 | 222 | if( zValue && strcmp(zTagname,"branch")==0 ){ |
| 222 | 223 | @ |
| 223 | 224 | @ <a href="%s(g.zBaseURL)/timeline?r=%T(zValue)">branch timeline</a> |
| 224 | 225 | } |
| 226 | +#endif |
| 225 | 227 | } |
| 226 | 228 | if( zSrcUuid && zSrcUuid[0] ){ |
| 227 | 229 | if( tagtype==0 ){ |
| 228 | 230 | @ by |
| 229 | 231 | }else{ |
| | @@ -349,11 +351,12 @@ |
| 349 | 351 | style_footer(); |
| 350 | 352 | return; |
| 351 | 353 | } |
| 352 | 354 | isLeaf = !db_exists("SELECT 1 FROM plink WHERE pid=%d", rid); |
| 353 | 355 | db_prepare(&q, |
| 354 | | - "SELECT uuid, datetime(mtime, 'localtime'), user, comment" |
| 356 | + "SELECT uuid, datetime(mtime, 'localtime'), user, comment," |
| 357 | + " datetime(omtime, 'localtime')" |
| 355 | 358 | " FROM blob, event" |
| 356 | 359 | " WHERE blob.rid=%d" |
| 357 | 360 | " AND event.objid=%d", |
| 358 | 361 | rid, rid |
| 359 | 362 | ); |
| | @@ -362,10 +365,11 @@ |
| 362 | 365 | char *zTitle = mprintf("Check-in [%.10s]", zUuid); |
| 363 | 366 | char *zEUser, *zEComment; |
| 364 | 367 | const char *zUser; |
| 365 | 368 | const char *zComment; |
| 366 | 369 | const char *zDate; |
| 370 | + const char *zOrigDate; |
| 367 | 371 | style_header(zTitle); |
| 368 | 372 | login_anonymous_available(); |
| 369 | 373 | free(zTitle); |
| 370 | 374 | zEUser = db_text(0, |
| 371 | 375 | "SELECT value FROM tagxref WHERE tagid=%d AND rid=%d", |
| | @@ -374,19 +378,24 @@ |
| 374 | 378 | "SELECT value FROM tagxref WHERE tagid=%d AND rid=%d", |
| 375 | 379 | TAG_COMMENT, rid); |
| 376 | 380 | zUser = db_column_text(&q, 2); |
| 377 | 381 | zComment = db_column_text(&q, 3); |
| 378 | 382 | zDate = db_column_text(&q,1); |
| 383 | + zOrigDate = db_column_text(&q, 4); |
| 379 | 384 | @ <div class="section">Overview</div> |
| 380 | 385 | @ <table class="label-value"> |
| 381 | 386 | @ <tr><th>SHA1 Hash:</th><td>%s(zUuid) |
| 382 | 387 | if( g.okSetup ){ |
| 383 | 388 | @ (Record ID: %d(rid)) |
| 384 | 389 | } |
| 385 | 390 | @ </td></tr> |
| 386 | 391 | @ <tr><th>Date:</th><td> |
| 387 | 392 | hyperlink_to_date(zDate, "</td></tr>"); |
| 393 | + if( zOrigDate ){ |
| 394 | + @ <tr><th>Original Date:</th><td> |
| 395 | + hyperlink_to_date(zOrigDate, "</td></tr>"); |
| 396 | + } |
| 388 | 397 | if( zEUser ){ |
| 389 | 398 | @ <tr><th>Edited User:</th><td> |
| 390 | 399 | hyperlink_to_user(zEUser,zDate,"</td></tr>"); |
| 391 | 400 | @ <tr><th>Original User:</th><td> |
| 392 | 401 | hyperlink_to_user(zUser,zDate,"</td></tr>"); |
| 393 | 402 | |