Fossil SCM
Remove the "Flat-View" submenu option from the /tree pages. The Flat-View page still exists, and is reachable from the /sitemap page. But it is no longer prominently featured.
Commit
47a9d3899a69b2c6588aa75e78a3077d32d0a2ff
Parent
9240905c978e1ce…
1 file changed
-4
-4
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -611,14 +611,10 @@ | ||
| 611 | 611 | }else{ |
| 612 | 612 | if( zRE ){ |
| 613 | 613 | blob_appendf(&dirname, "matching \"%s\"", zRE); |
| 614 | 614 | } |
| 615 | 615 | } |
| 616 | - if( !showDirOnly ){ | |
| 617 | - style_submenu_element("Flat-View", "Flat-View", "%s", | |
| 618 | - url_render(&sURI, "type", "flat", 0, 0)); | |
| 619 | - } | |
| 620 | 616 | if( useMtime ){ |
| 621 | 617 | style_submenu_element("Sort By Filename","Sort By Filename", "%s", |
| 622 | 618 | url_render(&sURI, 0, 0, 0, 0)); |
| 623 | 619 | url_add_parameter(&sURI, "mtime", "1"); |
| 624 | 620 | }else{ |
| 625 | 621 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -611,14 +611,10 @@ | |
| 611 | }else{ |
| 612 | if( zRE ){ |
| 613 | blob_appendf(&dirname, "matching \"%s\"", zRE); |
| 614 | } |
| 615 | } |
| 616 | if( !showDirOnly ){ |
| 617 | style_submenu_element("Flat-View", "Flat-View", "%s", |
| 618 | url_render(&sURI, "type", "flat", 0, 0)); |
| 619 | } |
| 620 | if( useMtime ){ |
| 621 | style_submenu_element("Sort By Filename","Sort By Filename", "%s", |
| 622 | url_render(&sURI, 0, 0, 0, 0)); |
| 623 | url_add_parameter(&sURI, "mtime", "1"); |
| 624 | }else{ |
| 625 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -611,14 +611,10 @@ | |
| 611 | }else{ |
| 612 | if( zRE ){ |
| 613 | blob_appendf(&dirname, "matching \"%s\"", zRE); |
| 614 | } |
| 615 | } |
| 616 | if( useMtime ){ |
| 617 | style_submenu_element("Sort By Filename","Sort By Filename", "%s", |
| 618 | url_render(&sURI, 0, 0, 0, 0)); |
| 619 | url_add_parameter(&sURI, "mtime", "1"); |
| 620 | }else{ |
| 621 |