Fossil SCM

Change the "Timeline" submenu item on the /forum page so that it carries the status= query parameter through to the timeline. Also omit the vfx query parameter since we now have the "Content" toggle on the timeline.

drh 2026-10-19 10:13 UTC trunk
Commit d6dcee660e8e12f007fcf7555b9e159c58ac52aac21604a5522985e78fce181a
1 file changed +6 -1
+6 -1
--- src/forum.c
+++ src/forum.c
@@ -2637,11 +2637,10 @@
26372637
bHasStatus = pFstat->n>1;
26382638
}
26392639
style_set_current_feature("forum");
26402640
style_header("%s%s", db_get("forum-title","Forum"),
26412641
isSearch ? " Search Results" : "");
2642
- style_submenu_element("Timeline", "%R/timeline?ss=v&y=f&vfx");
26432642
if( g.perm.WrForum ){
26442643
style_submenu_element("New Thread","%R/forumnew");
26452644
}else{
26462645
style_submenu_element("New Thread","%R/login");
26472646
}
@@ -2678,10 +2677,16 @@
26782677
zStatusFilter = 0;
26792678
}else{
26802679
bFilter = bHasStatus;
26812680
}
26822681
}
2682
+ if( bFilter ){
2683
+ style_submenu_element("Timeline",
2684
+ "%R/timeline?ss=v&y=f&status=%t", zStatusFilter);
2685
+ }else{
2686
+ style_submenu_element("Timeline", "%R/timeline?ss=v&y=f");
2687
+ }
26832688
if( bHasForum ){
26842689
Stmt qStat = empty_Stmt; /* Query to get status information */
26852690
if( bHasStatus ){
26862691
/* The qStat query runs once for each output row generate by the
26872692
** q query. It determines the value and label of the status for
26882693
--- src/forum.c
+++ src/forum.c
@@ -2637,11 +2637,10 @@
2637 bHasStatus = pFstat->n>1;
2638 }
2639 style_set_current_feature("forum");
2640 style_header("%s%s", db_get("forum-title","Forum"),
2641 isSearch ? " Search Results" : "");
2642 style_submenu_element("Timeline", "%R/timeline?ss=v&y=f&vfx");
2643 if( g.perm.WrForum ){
2644 style_submenu_element("New Thread","%R/forumnew");
2645 }else{
2646 style_submenu_element("New Thread","%R/login");
2647 }
@@ -2678,10 +2677,16 @@
2678 zStatusFilter = 0;
2679 }else{
2680 bFilter = bHasStatus;
2681 }
2682 }
 
 
 
 
 
 
2683 if( bHasForum ){
2684 Stmt qStat = empty_Stmt; /* Query to get status information */
2685 if( bHasStatus ){
2686 /* The qStat query runs once for each output row generate by the
2687 ** q query. It determines the value and label of the status for
2688
--- src/forum.c
+++ src/forum.c
@@ -2637,11 +2637,10 @@
2637 bHasStatus = pFstat->n>1;
2638 }
2639 style_set_current_feature("forum");
2640 style_header("%s%s", db_get("forum-title","Forum"),
2641 isSearch ? " Search Results" : "");
 
2642 if( g.perm.WrForum ){
2643 style_submenu_element("New Thread","%R/forumnew");
2644 }else{
2645 style_submenu_element("New Thread","%R/login");
2646 }
@@ -2678,10 +2677,16 @@
2677 zStatusFilter = 0;
2678 }else{
2679 bFilter = bHasStatus;
2680 }
2681 }
2682 if( bFilter ){
2683 style_submenu_element("Timeline",
2684 "%R/timeline?ss=v&y=f&status=%t", zStatusFilter);
2685 }else{
2686 style_submenu_element("Timeline", "%R/timeline?ss=v&y=f");
2687 }
2688 if( bHasForum ){
2689 Stmt qStat = empty_Stmt; /* Query to get status information */
2690 if( bHasStatus ){
2691 /* The qStat query runs once for each output row generate by the
2692 ** q query. It determines the value and label of the status for
2693

Keyboard Shortcuts

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