Fossil SCM
On all timelines, provide a hyperlink on the timestamp to another timeline that shows all activity around that point in time.
Commit
d3f9e588f7320b4168a08bd667780640cdb956d0
Parent
560483f50436c9f…
1 file changed
+3
-1
+3
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -270,10 +270,11 @@ | ||
| 270 | 270 | int tagid = db_column_int(pQuery, 9); |
| 271 | 271 | const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous"; |
| 272 | 272 | const char *zBr = 0; /* Branch */ |
| 273 | 273 | int commentColumn = 3; /* Column containing comment text */ |
| 274 | 274 | int modPending; /* Pending moderation */ |
| 275 | + char *zDateLink; /* URL for the link on the timestamp */ | |
| 275 | 276 | char zTime[20]; |
| 276 | 277 | |
| 277 | 278 | if( zDate==0 ){ |
| 278 | 279 | zDate = "YYYY-MM-DD HH:MM:SS"; /* Something wrong with the repo */ |
| 279 | 280 | } |
| @@ -351,11 +352,12 @@ | ||
| 351 | 352 | }else if( rid==vid ){ |
| 352 | 353 | @ <tr class="timelineCurrent"> |
| 353 | 354 | }else { |
| 354 | 355 | @ <tr> |
| 355 | 356 | } |
| 356 | - @ <td class="timelineTime">%s(zTime)</td> | |
| 357 | + zDateLink = href("%R/timeline?c=%!S", zUuid); | |
| 358 | + @ <td class="timelineTime">%z(zDateLink)%s(zTime)</a></td> | |
| 357 | 359 | @ <td class="timelineGraph"> |
| 358 | 360 | if( tmFlags & TIMELINE_UCOLOR ) zBgClr = zUser ? hash_color(zUser) : 0; |
| 359 | 361 | if( zType[0]=='c' |
| 360 | 362 | && (pGraph || zBgClr==0 || (tmFlags & TIMELINE_BRCOLOR)!=0) |
| 361 | 363 | ){ |
| 362 | 364 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -270,10 +270,11 @@ | |
| 270 | int tagid = db_column_int(pQuery, 9); |
| 271 | const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous"; |
| 272 | const char *zBr = 0; /* Branch */ |
| 273 | int commentColumn = 3; /* Column containing comment text */ |
| 274 | int modPending; /* Pending moderation */ |
| 275 | char zTime[20]; |
| 276 | |
| 277 | if( zDate==0 ){ |
| 278 | zDate = "YYYY-MM-DD HH:MM:SS"; /* Something wrong with the repo */ |
| 279 | } |
| @@ -351,11 +352,12 @@ | |
| 351 | }else if( rid==vid ){ |
| 352 | @ <tr class="timelineCurrent"> |
| 353 | }else { |
| 354 | @ <tr> |
| 355 | } |
| 356 | @ <td class="timelineTime">%s(zTime)</td> |
| 357 | @ <td class="timelineGraph"> |
| 358 | if( tmFlags & TIMELINE_UCOLOR ) zBgClr = zUser ? hash_color(zUser) : 0; |
| 359 | if( zType[0]=='c' |
| 360 | && (pGraph || zBgClr==0 || (tmFlags & TIMELINE_BRCOLOR)!=0) |
| 361 | ){ |
| 362 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -270,10 +270,11 @@ | |
| 270 | int tagid = db_column_int(pQuery, 9); |
| 271 | const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous"; |
| 272 | const char *zBr = 0; /* Branch */ |
| 273 | int commentColumn = 3; /* Column containing comment text */ |
| 274 | int modPending; /* Pending moderation */ |
| 275 | char *zDateLink; /* URL for the link on the timestamp */ |
| 276 | char zTime[20]; |
| 277 | |
| 278 | if( zDate==0 ){ |
| 279 | zDate = "YYYY-MM-DD HH:MM:SS"; /* Something wrong with the repo */ |
| 280 | } |
| @@ -351,11 +352,12 @@ | |
| 352 | }else if( rid==vid ){ |
| 353 | @ <tr class="timelineCurrent"> |
| 354 | }else { |
| 355 | @ <tr> |
| 356 | } |
| 357 | zDateLink = href("%R/timeline?c=%!S", zUuid); |
| 358 | @ <td class="timelineTime">%z(zDateLink)%s(zTime)</a></td> |
| 359 | @ <td class="timelineGraph"> |
| 360 | if( tmFlags & TIMELINE_UCOLOR ) zBgClr = zUser ? hash_color(zUser) : 0; |
| 361 | if( zType[0]=='c' |
| 362 | && (pGraph || zBgClr==0 || (tmFlags & TIMELINE_BRCOLOR)!=0) |
| 363 | ){ |
| 364 |