Fossil SCM
Remember the chosen type of artifacts that are shown at <tt>/timeline</tt> page as a display preference. This amends the initial behavior [/timeline?c=c94f6085489effe6&y=a | introduced on 2017-11-29] with the <tt>'sticky-timeline-style'</tt> branch.
Commit
61bd0c9b113c0f0c54435b8af0c9c0a19fa96e46bd8b5fb29b3b4de3b84331a0
Parent
d3c0206ed2e1cc2…
1 file changed
+6
-1
+6
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1780,11 +1780,16 @@ | ||
| 1780 | 1780 | zType = P("y"); |
| 1781 | 1781 | if( zType==0 ){ |
| 1782 | 1782 | zType = g.perm.Read ? "ci" : "all"; |
| 1783 | 1783 | cgi_set_parameter("y", zType); |
| 1784 | 1784 | } |
| 1785 | - if( zType[0]=='a' || zType[0]=='c' ){ | |
| 1785 | + if( zType[0]=='a' || | |
| 1786 | + ( g.perm.Read && zType[0]=='c' ) || | |
| 1787 | + ( g.perm.RdTkt && (zType[0]=='t' || zType[0]=='n') ) || | |
| 1788 | + ( g.perm.RdWiki && (zType[0]=='w' || zType[0]=='e') ) || | |
| 1789 | + ( g.perm.RdForum && zType[0]=='f' ) | |
| 1790 | + ){ | |
| 1786 | 1791 | cookie_write_parameter("y","y",zType); |
| 1787 | 1792 | } |
| 1788 | 1793 | |
| 1789 | 1794 | /* Convert the cf=FILEHASH query parameter into a c=CHECKINHASH value */ |
| 1790 | 1795 | if( P("cf")!=0 ){ |
| 1791 | 1796 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1780,11 +1780,16 @@ | |
| 1780 | zType = P("y"); |
| 1781 | if( zType==0 ){ |
| 1782 | zType = g.perm.Read ? "ci" : "all"; |
| 1783 | cgi_set_parameter("y", zType); |
| 1784 | } |
| 1785 | if( zType[0]=='a' || zType[0]=='c' ){ |
| 1786 | cookie_write_parameter("y","y",zType); |
| 1787 | } |
| 1788 | |
| 1789 | /* Convert the cf=FILEHASH query parameter into a c=CHECKINHASH value */ |
| 1790 | if( P("cf")!=0 ){ |
| 1791 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1780,11 +1780,16 @@ | |
| 1780 | zType = P("y"); |
| 1781 | if( zType==0 ){ |
| 1782 | zType = g.perm.Read ? "ci" : "all"; |
| 1783 | cgi_set_parameter("y", zType); |
| 1784 | } |
| 1785 | if( zType[0]=='a' || |
| 1786 | ( g.perm.Read && zType[0]=='c' ) || |
| 1787 | ( g.perm.RdTkt && (zType[0]=='t' || zType[0]=='n') ) || |
| 1788 | ( g.perm.RdWiki && (zType[0]=='w' || zType[0]=='e') ) || |
| 1789 | ( g.perm.RdForum && zType[0]=='f' ) |
| 1790 | ){ |
| 1791 | cookie_write_parameter("y","y",zType); |
| 1792 | } |
| 1793 | |
| 1794 | /* Convert the cf=FILEHASH query parameter into a c=CHECKINHASH value */ |
| 1795 | if( P("cf")!=0 ){ |
| 1796 |