Fossil SCM

Enhance "Changes to wiki page" entries within <code>/timeline</code>: turn the word "Changes" into a hyperlink to the corresponding [/help?cmd=/wdiff|/wdiff] page.

george 2022-07-02 12:24 trunk
Commit 3a9090fc5adc6c119700b6fd20dfb1077b437be9a9f2f15c903b35516209b9b3
1 file changed +2 -2
+2 -2
--- src/timeline.c
+++ src/timeline.c
@@ -521,12 +521,12 @@
521521
&& (zCom[0]=='+' || zCom[0]==':') ){
522522
@ Wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
523523
}else if( zCom[0]=='+' ){
524524
@ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
525525
}else if( zCom[0]==':' ){
526
- @ Changes to wiki page "%z(href("%R/wiki?name=%t",zCom+1))\
527
- @ %h(zCom+1)</a>"
526
+ @ %z(href("%R/wdiff?id=%!S",zUuid))Changes</a> to wiki page
527
+ @ "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
528528
}else{
529529
/* Assume this is an attachment message. It _might_ also
530530
** be a legacy-format wiki log entry, in which case it
531531
** will simply be rendered in the older format. */
532532
wiki_convert(&comment, 0, WIKI_INLINE);
533533
--- src/timeline.c
+++ src/timeline.c
@@ -521,12 +521,12 @@
521 && (zCom[0]=='+' || zCom[0]==':') ){
522 @ Wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
523 }else if( zCom[0]=='+' ){
524 @ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
525 }else if( zCom[0]==':' ){
526 @ Changes to wiki page "%z(href("%R/wiki?name=%t",zCom+1))\
527 @ %h(zCom+1)</a>"
528 }else{
529 /* Assume this is an attachment message. It _might_ also
530 ** be a legacy-format wiki log entry, in which case it
531 ** will simply be rendered in the older format. */
532 wiki_convert(&comment, 0, WIKI_INLINE);
533
--- src/timeline.c
+++ src/timeline.c
@@ -521,12 +521,12 @@
521 && (zCom[0]=='+' || zCom[0]==':') ){
522 @ Wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
523 }else if( zCom[0]=='+' ){
524 @ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
525 }else if( zCom[0]==':' ){
526 @ %z(href("%R/wdiff?id=%!S",zUuid))Changes</a> to wiki page
527 @ "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
528 }else{
529 /* Assume this is an attachment message. It _might_ also
530 ** be a legacy-format wiki log entry, in which case it
531 ** will simply be rendered in the older format. */
532 wiki_convert(&comment, 0, WIKI_INLINE);
533

Keyboard Shortcuts

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