Fossil SCM
On /dir page, add a link named "[history]" that point to the timeline affecting only the files inside the current directory. Use the "chng=dirname/*" query parameter of the /timeline page) TODO: Implement the same in Tree-View mode (could add the link beside each directory)
Commit
c458c3f61bda3f4a7d1218dfd15d6e634a16bd32
Parent
8fe0fefb24e30b6…
1 file changed
+5
-1
+5
-1
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -186,11 +186,15 @@ | ||
| 186 | 186 | if( linkTip ){ |
| 187 | 187 | style_submenu_element("Tip", "%s", url_render(&sURI, "ci", "tip", 0, 0)); |
| 188 | 188 | } |
| 189 | 189 | if( zCI ){ |
| 190 | 190 | @ <h2>Files of check-in [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>] |
| 191 | - @ %s(blob_str(&dirname))</h2> | |
| 191 | + @ %s(blob_str(&dirname)) | |
| 192 | + if( zD ){ | |
| 193 | + @ %z(href("%R/timeline?chng=%T/*", zD)) [history]</a> | |
| 194 | + } | |
| 195 | + @ </h2> | |
| 192 | 196 | zSubdirLink = mprintf("%R/dir?ci=%!S&name=%T", zUuid, zPrefix); |
| 193 | 197 | if( nD==0 ){ |
| 194 | 198 | style_submenu_element("File Ages", "%R/fileage?name=%!S", zUuid); |
| 195 | 199 | } |
| 196 | 200 | }else{ |
| 197 | 201 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -186,11 +186,15 @@ | |
| 186 | if( linkTip ){ |
| 187 | style_submenu_element("Tip", "%s", url_render(&sURI, "ci", "tip", 0, 0)); |
| 188 | } |
| 189 | if( zCI ){ |
| 190 | @ <h2>Files of check-in [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>] |
| 191 | @ %s(blob_str(&dirname))</h2> |
| 192 | zSubdirLink = mprintf("%R/dir?ci=%!S&name=%T", zUuid, zPrefix); |
| 193 | if( nD==0 ){ |
| 194 | style_submenu_element("File Ages", "%R/fileage?name=%!S", zUuid); |
| 195 | } |
| 196 | }else{ |
| 197 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -186,11 +186,15 @@ | |
| 186 | if( linkTip ){ |
| 187 | style_submenu_element("Tip", "%s", url_render(&sURI, "ci", "tip", 0, 0)); |
| 188 | } |
| 189 | if( zCI ){ |
| 190 | @ <h2>Files of check-in [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>] |
| 191 | @ %s(blob_str(&dirname)) |
| 192 | if( zD ){ |
| 193 | @ %z(href("%R/timeline?chng=%T/*", zD)) [history]</a> |
| 194 | } |
| 195 | @ </h2> |
| 196 | zSubdirLink = mprintf("%R/dir?ci=%!S&name=%T", zUuid, zPrefix); |
| 197 | if( nD==0 ){ |
| 198 | style_submenu_element("File Ages", "%R/fileage?name=%!S", zUuid); |
| 199 | } |
| 200 | }else{ |
| 201 |