Fossil SCM

Link to the next edit rather than the final edit

andygoth 2020-08-22 02:53 andygoth-forum-refactor
Commit 91a3a600e689794fd27bf2b500a94b8d9102d49091f0c713d15f792fa2fb3bd2
1 file changed +5 -5
+5 -5
--- src/forum.c
+++ src/forum.c
@@ -467,15 +467,15 @@
467467
@ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\
468468
}
469469
@ </a>
470470
}
471471
472
- /* If this post was later edited, refer forward to the new version. */
473
- if( p->pEditTail ){
474
- @ updated by %z(href("%R/forumpost/%S?%s",p->pEditTail->zUuid,zQuery))\
475
- @ %d(p->pEditTail->sid)\
476
- @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditTail->rev)</a>
472
+ /* If this post was later edited, refer forward to the next edit. */
473
+ if( p->pEditNext ){
474
+ @ updated by %z(href("%R/forumpost/%S?%s",p->pEditNext->zUuid,zQuery))\
475
+ @ %d(p->pEditNext->sid)\
476
+ @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditNext->rev)</a>
477477
}
478478
479479
/* Provide a link to select the individual post. */
480480
if( !bSelect ){
481481
@ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a>
482482
--- src/forum.c
+++ src/forum.c
@@ -467,15 +467,15 @@
467 @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\
468 }
469 @ </a>
470 }
471
472 /* If this post was later edited, refer forward to the new version. */
473 if( p->pEditTail ){
474 @ updated by %z(href("%R/forumpost/%S?%s",p->pEditTail->zUuid,zQuery))\
475 @ %d(p->pEditTail->sid)\
476 @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditTail->rev)</a>
477 }
478
479 /* Provide a link to select the individual post. */
480 if( !bSelect ){
481 @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a>
482
--- src/forum.c
+++ src/forum.c
@@ -467,15 +467,15 @@
467 @ .%.*d(fossil_num_digits(p->pIrt->nEdit))(p->pIrt->rev)\
468 }
469 @ </a>
470 }
471
472 /* If this post was later edited, refer forward to the next edit. */
473 if( p->pEditNext ){
474 @ updated by %z(href("%R/forumpost/%S?%s",p->pEditNext->zUuid,zQuery))\
475 @ %d(p->pEditNext->sid)\
476 @ .%.*d(fossil_num_digits(p->nEdit))(p->pEditNext->rev)</a>
477 }
478
479 /* Provide a link to select the individual post. */
480 if( !bSelect ){
481 @ %z(href("%R/forumpost/%S?%s",p->zUuid,zQuery))[link]</a>
482

Keyboard Shortcuts

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