Fossil SCM

On all timelines, provide a hyperlink on the timestamp to another timeline that shows all activity around that point in time.

drh 2015-04-26 17:35 trunk
Commit d3f9e588f7320b4168a08bd667780640cdb956d0
1 file changed +3 -1
+3 -1
--- src/timeline.c
+++ src/timeline.c
@@ -270,10 +270,11 @@
270270
int tagid = db_column_int(pQuery, 9);
271271
const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
272272
const char *zBr = 0; /* Branch */
273273
int commentColumn = 3; /* Column containing comment text */
274274
int modPending; /* Pending moderation */
275
+ char *zDateLink; /* URL for the link on the timestamp */
275276
char zTime[20];
276277
277278
if( zDate==0 ){
278279
zDate = "YYYY-MM-DD HH:MM:SS"; /* Something wrong with the repo */
279280
}
@@ -351,11 +352,12 @@
351352
}else if( rid==vid ){
352353
@ <tr class="timelineCurrent">
353354
}else {
354355
@ <tr>
355356
}
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>
357359
@ <td class="timelineGraph">
358360
if( tmFlags & TIMELINE_UCOLOR ) zBgClr = zUser ? hash_color(zUser) : 0;
359361
if( zType[0]=='c'
360362
&& (pGraph || zBgClr==0 || (tmFlags & TIMELINE_BRCOLOR)!=0)
361363
){
362364
--- 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

Keyboard Shortcuts

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