Fossil SCM
Add a "Timeline" link to the /forum page.
Commit
39bc414b1703cb00762987e80228316a9b41f9d6dfd3330bec37493128779c51
Parent
c8a39b661bf488c…
1 file changed
+1
+1
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -1397,10 +1397,11 @@ | ||
| 1397 | 1397 | login_needed(g.anon.RdForum); |
| 1398 | 1398 | return; |
| 1399 | 1399 | } |
| 1400 | 1400 | style_set_current_feature("forum"); |
| 1401 | 1401 | style_header( "%s", isSearch ? "Forum Search Results" : "Forum" ); |
| 1402 | + style_submenu_element("Timeline", "%R/timeline?ss=v&y=f&vfx"); | |
| 1402 | 1403 | if( g.perm.WrForum ){ |
| 1403 | 1404 | style_submenu_element("New Thread","%R/forumnew"); |
| 1404 | 1405 | }else{ |
| 1405 | 1406 | /* Can't combine this with previous case using the ternary operator |
| 1406 | 1407 | * because that causes an error yelling about "non-constant format" |
| 1407 | 1408 |
| --- 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 |