Fossil SCM

Add a "Timeline" link to the /forum page.

drh 2022-07-19 13:15 trunk
Commit 39bc414b1703cb00762987e80228316a9b41f9d6dfd3330bec37493128779c51
1 file changed +1
--- src/forum.c
+++ src/forum.c
@@ -1397,10 +1397,11 @@
13971397
login_needed(g.anon.RdForum);
13981398
return;
13991399
}
14001400
style_set_current_feature("forum");
14011401
style_header( "%s", isSearch ? "Forum Search Results" : "Forum" );
1402
+ style_submenu_element("Timeline", "%R/timeline?ss=v&y=f&vfx");
14021403
if( g.perm.WrForum ){
14031404
style_submenu_element("New Thread","%R/forumnew");
14041405
}else{
14051406
/* Can't combine this with previous case using the ternary operator
14061407
* because that causes an error yelling about "non-constant format"
14071408
--- src/forum.c
+++ src/forum.c
@@ -1397,10 +1397,11 @@
1397 login_needed(g.anon.RdForum);
1398 return;
1399 }
1400 style_set_current_feature("forum");
1401 style_header( "%s", isSearch ? "Forum Search Results" : "Forum" );
 
1402 if( g.perm.WrForum ){
1403 style_submenu_element("New Thread","%R/forumnew");
1404 }else{
1405 /* Can't combine this with previous case using the ternary operator
1406 * because that causes an error yelling about "non-constant format"
1407
--- src/forum.c
+++ src/forum.c
@@ -1397,10 +1397,11 @@
1397 login_needed(g.anon.RdForum);
1398 return;
1399 }
1400 style_set_current_feature("forum");
1401 style_header( "%s", isSearch ? "Forum Search Results" : "Forum" );
1402 style_submenu_element("Timeline", "%R/timeline?ss=v&y=f&vfx");
1403 if( g.perm.WrForum ){
1404 style_submenu_element("New Thread","%R/forumnew");
1405 }else{
1406 /* Can't combine this with previous case using the ternary operator
1407 * because that causes an error yelling about "non-constant format"
1408

Keyboard Shortcuts

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