Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | On the /timeline and /finfo pages, change the hyperlinks under the timestamp to point to the object referenced. This allows the timeline to be configured for "comment-only" but still provide a link to the object. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: | 77dfcc91edbc8bcb080814f3e2a884ec |
User & Date: | drh 2017-11-24 21:51:54 |
Context
2017-11-24
| ||
22:35 | Add the "basic=1" query parameter to /timeline, to declutter the display. check-in: 5ec5a403 user: drh tags: trunk | |
21:51 | On the /timeline and /finfo pages, change the hyperlinks under the timestamp to point to the object referenced. This allows the timeline to be configured for "comment-only" but still provide a link to the object. check-in: 77dfcc91 user: drh tags: trunk | |
20:46 | New class "timelineDetailCell" for all <td> elements that hold the separate detail column of a timeline. check-in: b3998550 user: drh tags: trunk | |
Changes
Changes to src/finfo.c.
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 |
@ <tr><td>
@ <div class="divider timelineDate">%s(zPrevDate)</div>
@ </td><td></td><td></td></tr>
}
memcpy(zTime, &zDate[11], 5);
zTime[5] = 0;
@ <tr><td class="timelineTime">
@ %z(href("%R/timeline?c=%t",zDate))%s(zTime)</a></td>
@ <td class="timelineGraph"><div id="m%d(gidx)" class="tl-nodemark"></div>
@ </td>
if( zBgClr && zBgClr[0] ){
@ <td class="timelineTableCell" style="background-color: %h(zBgClr);">
}else{
@ <td class="timelineTableCell">
}
|
| |
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 |
@ <tr><td>
@ <div class="divider timelineDate">%s(zPrevDate)</div>
@ </td><td></td><td></td></tr>
}
memcpy(zTime, &zDate[11], 5);
zTime[5] = 0;
@ <tr><td class="timelineTime">
@ %z(href("%R/artifact/%!S",zUuid))%s(zTime)</a></td>
@ <td class="timelineGraph"><div id="m%d(gidx)" class="tl-nodemark"></div>
@ </td>
if( zBgClr && zBgClr[0] ){
@ <td class="timelineTableCell" style="background-color: %h(zBgClr);">
}else{
@ <td class="timelineTableCell">
}
|
Changes to src/timeline.c.
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 |
@ <tr class="timelineSelected"> pendingEndTr = 2; }else if( rid==vid ){ @ <tr class="timelineCurrent"> }else { @ <tr> } zDateLink = href("%R/timeline?c=%!S&unhide", zUuid); @ <td class="timelineTime">%z(zDateLink)%s(zTime)</a></td> @ <td class="timelineGraph"> if( tmFlags & TIMELINE_UCOLOR ) zBgClr = zUser ? hash_color(zUser) : 0; if( zType[0]=='c' && (pGraph || zBgClr==0 || (tmFlags & TIMELINE_BRCOLOR)!=0) ){ db_reset(&qbranch); |
> > > > > > > > > > > | |
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
@ <tr class="timelineSelected"> pendingEndTr = 2; }else if( rid==vid ){ @ <tr class="timelineCurrent"> }else { @ <tr> } if( zType[0]=='e' && tagid ){ char *zId; zId = db_text(0, "SELECT substr(tagname, 7) FROM tag WHERE tagid=%d", tagid); zDateLink = href("%R/technote/%s",zId); free(zId); }else if( zUuid ){ zDateLink = xhref("class='timelineHistLink'", "%R/info/%!S", zUuid); }else{ zDateLink = mprintf("<a>"); } /* WAS: zDateLink = href("%R/timeline?c=%!S&unhide", zUuid); */ @ <td class="timelineTime">%z(zDateLink)%s(zTime)</a></td> @ <td class="timelineGraph"> if( tmFlags & TIMELINE_UCOLOR ) zBgClr = zUser ? hash_color(zUser) : 0; if( zType[0]=='c' && (pGraph || zBgClr==0 || (tmFlags & TIMELINE_BRCOLOR)!=0) ){ db_reset(&qbranch); |